def test_doctestmodule_three_tests(self, testdir):
    p = testdir.makepyfile("\n            '''\n            >>> dir = getfixture('tmpdir')\n            >>> type(dir).__name__\n            'LocalPath'\n            '''\n            def my_func():\n                '''\n                >>> magic = 42\n                >>> magic - 42\n                0\n                '''\n            def unuseful():\n                pass\n            def another():\n                '''\n                >>> import os\n                >>> os is os\n                True\n                '''\n        ")
    reprec = testdir.inline_run(p, '--doctest-modules')
    reprec.assertoutcome(passed=3)
def test_doctestmodule_three_tests(self, testdir):
    p = testdir.makepyfile("\n            '\n            >>> dir = getfixture('tmpdir')\n            >>> type(dir).__name__\n            'LocalPath'\n            '\n            def my_func():\n                '\n                >>> magic = 42\n                >>> magic - 42\n                0\n                '\n            def unuseful():\n                pass\n            def another():\n                '\n                >>> import os\n                >>> os is os\n                True\n                '\n        ")
    reprec = testdir.inline_run(p, '--doctest-modules')
    reprec.assertoutcome(passed=3)