@@ -293,6 +293,26 @@ func TestODbLV1(t *testing.T) {
293293 assert .NotContains (t , license .Prohibits , HighIncomeNationUse )
294294}
295295
296+ func TestIODLV2URL (t * testing.T ) {
297+
298+ license := GetDataLicense (IODLV2URL )
299+
300+ assert .Equal (t , license .Name , "Italian Open Data License v2.0" )
301+ assert .Equal (t , license .URL , "https://www.dati.gov.it/content/italian-open-data-license-v20" )
302+ assert .Equal (t , license .LegalCodeURL , "https://www.dati.gov.it/content/italian-open-data-license-v20" )
303+ // check Permits
304+ assert .Contains (t , license .Permits , Reproduction )
305+ assert .Contains (t , license .Permits , Distribution )
306+ assert .Contains (t , license .Permits , DerivativeWorks )
307+ assert .Contains (t , license .Permits , Sharing )
308+
309+ // check Requires
310+ assert .Contains (t , license .Requires , Attribution )
311+
312+ // check Prohibits
313+ assert .NotContains (t , license .Prohibits , CommercialUse )
314+ assert .NotContains (t , license .Prohibits , HighIncomeNationUse )
315+ }
296316func TestCustomLicense (t * testing.T ) {
297317 thing := Thing {
298318 Title : "Title" ,
0 commit comments