Exemplo n.º 1
0
 def test_licenses(self):
     """Test format of available licenses."""
     lics = what_licenses()
     for lic in lics:
         self.assertTrue(isinstance(lic, basestring))
         self.assertTrue(lic.startswith('License'))
         self.assertTrue(issubclass(lics[lic], License))
Exemplo n.º 2
0
 def test_licenses(self):
     """Test format of available licenses."""
     lics = what_licenses()
     for lic in lics:
         self.assertTrue(isinstance(lic, string_type))
         self.assertTrue(lic.startswith('License'))
         self.assertTrue(issubclass(lics[lic], License))
Exemplo n.º 3
0
 def test_common_ones(self):
     """Check if a number of common licenses can be found"""
     lics = what_licenses()
     commonlicenses = [
         'LicenseVeryRestrictive', 'LicenseGPLv2', 'LicenseGPLv3'
     ]
     for lic in commonlicenses:
         self.assertTrue(lic in lics, "%s found in %s" % (lic, lics.keys()))
Exemplo n.º 4
0
 def test_common_ones(self):
     """Check if a number of common licenses can be found"""
     lics = what_licenses()
     commonlicenses = ['LicenseVeryRestrictive', 'LicenseGPLv2', 'LicenseGPLv3']
     for lic in commonlicenses:
         self.assertTrue(lic in lics, "%s found in %s" % (lic, lics.keys()))
Exemplo n.º 5
0
 def test_common_ones(self):
     """Check if a number of common licenses can be found"""
     lics = what_licenses()
     commonlicenses = ['VeryRestrictive', 'GPLv2', 'GPLv3']
     for lic in commonlicenses:
         self.assertTrue(lic in lics)
Exemplo n.º 6
0
 def test_common_ones(self):
     """Check if a number of common licenses can be found"""
     lics = what_licenses()
     commonlicenses = ['VeryRestrictive', 'GPLv2', 'GPLv3']
     for lic in commonlicenses:
         self.assertTrue(lic in lics)