Exemple #1
0
 def test_w_package_name(self):
     from pkginfo.tests import _defaultMetadataVersion
     EXPECTED = _defaultMetadataVersion()
     from pkginfo.tests import _checkSample
     dist = self._callFUT('pkginfo')
     self.assertEqual(dist.metadata_version, EXPECTED)
     _checkSample(self, dist)
Exemple #2
0
 def test_w_package_name(self):
     from pkginfo.tests import _defaultMetadataVersion
     EXPECTED =  _defaultMetadataVersion()
     from pkginfo.tests import _checkSample
     dist = self._callFUT('pkginfo')
     self.assertEqual(dist.metadata_version, EXPECTED)
     _checkSample(self, dist)
Exemple #3
0
 def test_w_module(self):
     from pkginfo.tests import _defaultMetadataVersion
     EXPECTED = _defaultMetadataVersion()
     import pkginfo
     from pkginfo.tests import _checkSample
     dist = self._callFUT(pkginfo)
     self.assertEqual(dist.metadata_version, EXPECTED)
     _checkSample(self, dist)
Exemple #4
0
 def test_w_module(self):
     from pkginfo.tests import _defaultMetadataVersion
     EXPECTED =  _defaultMetadataVersion()
     import pkginfo
     from pkginfo.tests import _checkSample
     dist = self._callFUT(pkginfo)
     self.assertEqual(dist.metadata_version, EXPECTED)
     _checkSample(self, dist)
 def test_ctor_w_name(self):
     import pkginfo
     from pkginfo.tests import _checkSample
     from pkginfo.tests import _defaultMetadataVersion
     EXPECTED = _defaultMetadataVersion()
     installed = self._makeOne('pkginfo')
     self.assertEqual(installed.metadata_version, EXPECTED)
     self.assertEqual(installed.package, pkginfo)
     self.assertEqual(installed.package_name, 'pkginfo')
     _checkSample(self, installed)
Exemple #6
0
 def test_ctor_w_name(self):
     import pkginfo
     from pkginfo.tests import _checkSample
     from pkginfo.tests import _defaultMetadataVersion
     EXPECTED = _defaultMetadataVersion()
     installed = self._makeOne('pkginfo')
     self.assertEqual(installed.metadata_version, EXPECTED)
     self.assertEqual(installed.package, pkginfo)
     self.assertEqual(installed.package_name, 'pkginfo')
     _checkSample(self, installed)