Esempio n. 1
0
 def test_check_homepage(self):
     metadata = LegacyMetadata()
     metadata['Version'] = '1.0'
     metadata['Name'] = 'vimpdb'
     metadata['Author'] = 'Monty Python'
     missing, warnings = metadata.check()
     self.assertEqual(missing, ['Home-page'])
Esempio n. 2
0
 def test_check_author(self):
     metadata = LegacyMetadata()
     metadata['Version'] = '1.0'
     metadata['Name'] = 'vimpdb'
     metadata['Home-page'] = 'http://pypi.org'
     missing, warnings = metadata.check()
     self.assertEqual(missing, ['Author'])
Esempio n. 3
0
 def test_check_homepage(self):
     metadata = LegacyMetadata()
     metadata['Version'] = '1.0'
     metadata['Name'] = 'vimpdb'
     metadata['Author'] = 'Monty Python'
     missing, warnings = metadata.check()
     self.assertEqual(missing, ['Home-page'])
Esempio n. 4
0
 def test_check_author(self):
     metadata = LegacyMetadata()
     metadata['Version'] = '1.0'
     metadata['Name'] = 'vimpdb'
     metadata['Home-page'] = 'http://pypi.python.org'
     missing, warnings = metadata.check()
     self.assertEqual(missing, ['Author'])
Esempio n. 5
0
 def test_check_matchers(self):
     metadata = LegacyMetadata()
     metadata['Version'] = 'rr'
     metadata['Name'] = 'vimpdb'
     metadata['Home-page'] = 'http://pypi.org'
     metadata['Author'] = 'Monty Python'
     metadata['Requires-dist'] = ['Foo (a)']
     metadata['Obsoletes-dist'] = ['Foo (a)']
     metadata['Provides-dist'] = ['Foo (a)']
     missing, warnings = metadata.check()
     self.assertEqual(len(warnings), 4)
Esempio n. 6
0
 def test_check_matchers(self):
     metadata = LegacyMetadata()
     metadata['Version'] = 'rr'
     metadata['Name'] = 'vimpdb'
     metadata['Home-page'] = 'http://pypi.python.org'
     metadata['Author'] = 'Monty Python'
     metadata['Requires-dist'] = ['Foo (a)']
     metadata['Obsoletes-dist'] = ['Foo (a)']
     metadata['Provides-dist'] = ['Foo (a)']
     missing, warnings = metadata.check()
     self.assertEqual(len(warnings), 4)