[svn r37433] Add a helper which returns value + path of a dir where value was found

--HG--
branch : trunk
This commit is contained in:
fijal
2007-01-27 15:01:45 +01:00
parent 50a0a04bd2
commit f1b4e14f09
3 changed files with 23 additions and 5 deletions
+6
View File
@@ -65,6 +65,12 @@ class TestConftestValueAccessGlobal:
#conftest.lget("a") == 1
#conftest.lget("b") == 1
def test_value_access_path(self):
topdir = self.basedir.join("adir", "b")
conftest = Conftest(topdir)
_, mod = conftest.rget_path("a")
assert py.path.local(mod.__file__).dirpath() == topdir
class TestConftestValueAccessInPackage(TestConftestValueAccessGlobal):
def setup_class(cls):
TestConftestValueAccessGlobal.__dict__['setup_class'](cls)