Esempio n. 1
0
 def test_mit(self):
     self.assertEqual(
         "http://creativecommons.org/licenses/MIT/",
         compute_about_url(license_code="MIT",
                           version="",
                           jurisdiction_code=""),
     )
Esempio n. 2
0
 def test_gpl20(self):
     self.assertEqual(
         "http://creativecommons.org/licenses/GPL/2.0/",
         compute_about_url(license_code="GPL",
                           version="2.0",
                           jurisdiction_code=""),
     )
Esempio n. 3
0
 def test_30_nl(self):
     self.assertEqual(
         "http://creativecommons.org/licenses/by/3.0/nl/",
         compute_about_url(
             license_code="by",
             version="3.0",
             jurisdiction_code="nl",
         ),
     )
Esempio n. 4
0
 def test_by_nc_40(self):
     self.assertEqual(
         "http://creativecommons.org/licenses/by-nc/4.0/",
         compute_about_url(
             license_code="by-nc",
             version="4.0",
             jurisdiction_code="",
         ),
     )