示例#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'])
示例#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'])
示例#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'])
示例#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'])
示例#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)
示例#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)