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))
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))
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()))
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()))
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)
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)