def test_doctestmodule_external_and_issue116(self, testdir):
    p = testdir.mkpydir('hello')
    p.join('__init__.py').write(textwrap.dedent("                def somefunc():\n                    '''\n                        >>> i = 0\n                        >>> i + 1\n                        2\n                    '''\n                "))
    result = testdir.runpytest(p, '--doctest-modules')
    result.stdout.fnmatch_lines(['003 *>>> i = 0', '004 *>>> i + 1', '*Expected:', '*    2', '*Got:', '*    1', '*:4: DocTestFailure'])
def test_doctestmodule_external_and_issue116(self, testdir):
    p = testdir.mkpydir('hello')
    p.join('__init__.py').write(textwrap.dedent("                def somefunc():\n                    '\n                        >>> i = 0\n                        >>> i + 1\n                        2\n                    '\n                "))
    result = testdir.runpytest(p, '--doctest-modules')
    result.stdout.fnmatch_lines(['003 *>>> i = 0', '004 *>>> i + 1', '*Expected:', '*    2', '*Got:', '*    1', '*:4: DocTestFailure'])