Exemple #1
0
 def test_relative_path(self):
     pkg = PkgResources("vumi.tests")
     self.assertEqual(os.path.join(self.vumi_tests_path, 'foo/bar'),
                      pkg.path('foo/bar'))
Exemple #2
0
 def test_relative_path(self):
     pkg = PkgResources("vumi.tests")
     self.assertEqual(os.path.join(self.vumi_tests_path, 'foo/bar'),
                      pkg.path('foo/bar'))
Exemple #3
0
 def test_absolute_path(self):
     pkg = PkgResources("vumi.tests")
     self.assertEqual('/foo/bar', pkg.path('/foo/bar'))
Exemple #4
0
 def test_absolute_path(self):
     pkg = PkgResources("vumi.tests")
     self.assertEqual('/foo/bar', pkg.path('/foo/bar'))