Beispiel #1
0
 def test_check_name_strict(self):
     metadata = Metadata()
     metadata['Version'] = '1.0'
     metadata['Home-page'] = 'http://pypi.python.org'
     metadata['Author'] = 'Monty Python'
     metadata.docutils_support = False
     self.assertRaises(MetadataMissingError, metadata.check, strict=True)
Beispiel #2
0
 def test_check_homepage(self):
     metadata = Metadata()
     metadata['Version'] = '1.0'
     metadata['Name'] = 'vimpdb'
     metadata['Author'] = 'Monty Python'
     metadata.docutils_support = False
     missing, warnings = metadata.check()
     self.assertEqual(missing, ['Home-page'])
Beispiel #3
0
 def test_check_author(self):
     metadata = Metadata()
     metadata['Version'] = '1.0'
     metadata['Name'] = 'vimpdb'
     metadata['Home-page'] = 'http://pypi.python.org'
     metadata.docutils_support = False
     missing, warnings = metadata.check()
     self.assertEqual(missing, ['Author'])