Beispiel #1
0
 def test_find_egg_module(self):
     mtype, mfile = modutils._module_file(
         [self.package], [resources.find('data/MyPyPa-0.1.0-py2.5.egg')])
     self.assertEqual(mtype, modutils.PY_ZIPMODULE)
     self.assertEqual(
         mfile.split(os.sep)[-3:],
         ["data", "MyPyPa-0.1.0-py2.5.egg", self.package])
 def test_find_egg_module(self):
     mtype, mfile = modutils._module_file(
         [self.package], [path.join(DATADIR, 'MyPyPa-0.1.0-py2.5.egg')])
     self.assertEqual(mtype, modutils.ZIPFILE)
     self.assertEqual(
         mfile.split(sep)[-4:],
         ["test", "data", "MyPyPa-0.1.0-py2.5.egg", self.package])
Beispiel #3
0
 def test_find_egg_module(self):
     mtype, mfile = modutils._module_file([self.package], [path.join(DATADIR, 'MyPyPa-0.1.0-py2.5.egg')])
     self.assertEqual(mtype, modutils.ZIPFILE)
     self.assertEqual(mfile.split(sep)[-4:], ["test", "data", "MyPyPa-0.1.0-py2.5.egg", self.package])
 def test_find_egg_module(self):
     mtype, mfile = modutils._module_file(
         [self.package], [resources.find('data/MyPyPa-0.1.0-py2.5.egg')])
     self.assertEqual(mtype, modutils.PY_ZIPMODULE)
     self.assertEqual(mfile.split(os.sep)[-3:], ["data", "MyPyPa-0.1.0-py2.5.egg", self.package])