def test_classifiers_sdist(self): distribution = mock.Mock(path=self.asset_path('packagewithclassifiers-0.0.0.tar.gz'),) metadata = Metadata(distribution) self.assertEqual(metadata.register()['classifiers'], [ u'Development Status :: 5 - Production/Stable', u'License :: OSI Approved :: BSD License', u'Operating System :: OS Independent', u'Programming Language :: Python', u'Programming Language :: Python :: 2.6', u'Programming Language :: Python :: 2.7', u'Topic :: Software Development :: Libraries :: Python Modules' ])
def test_register(self): distribution = mock.Mock( path=self.asset_path('somefakepackage-0.0.0.tar.gz') ) metadata = Metadata(distribution) self.assertEqual(metadata.register(), { ':action': 'submit', 'author': u'Eddy Merckx', 'author_email': u'*****@*****.**', 'classifiers': (), 'description': u'Long package description.', 'download_url': 'UNKNOWN', 'home_page': 'UNKNOWN', 'keywords': [], 'license': 'UNKNOWN', 'metadata_version': u'1.0', 'name': u'somefakepackage', 'obsoletes': (), 'platform': [u'UNKNOWN'], 'provides': (), 'requires': (), 'summary': u'Package description', 'version': u'0.0.0' })
def test_keywords(self): distribution = mock.Mock(path=self.asset_path('packagewithkeywords-0.0.0.tar.gz'),) metadata = Metadata(distribution) self.assertEqual(metadata.register()['keywords'], [ u'testing', u'space', u'separated', u'keywords' ])