test `get_fixture` helper for doctests

--HG--
branch : doctest-fixtures
This commit is contained in:
Andreas Zeidler 2013-03-20 17:14:28 +01:00
parent f747d363b0
commit c4b3a09886
1 changed files with 9 additions and 0 deletions

View File

@ -124,3 +124,12 @@ class TestDoctests:
" 1",
"*test_txtfile_failing.txt:2: DocTestFailure"
])
def test_txtfile_with_fixtures(self, testdir, tmpdir):
p = testdir.maketxtfile("""
>>> dir = get_fixture('tmpdir')
>>> type(dir).__name__
'LocalPath'
""")
reprec = testdir.inline_run(p, )
reprec.assertoutcome(passed=1)