From c4b3a09886b146c8e33fec3871b0459e838a2421 Mon Sep 17 00:00:00 2001 From: Andreas Zeidler Date: Wed, 20 Mar 2013 17:14:28 +0100 Subject: [PATCH] test `get_fixture` helper for doctests --HG-- branch : doctest-fixtures --- testing/test_doctest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testing/test_doctest.py b/testing/test_doctest.py index 771cb52f3..a4532dbeb 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -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)