def test_docstring_full_context_around_error(self, testdir):
    'Test that we show the whole context before the actual line of a failing\n        doctest, provided that the context is up to 10 lines long.\n        '
    testdir.makepyfile('\n            def foo():\n                """\n                text-line-1\n                text-line-2\n\n                >>> 1 + 1\n                3\n                """\n        ')
    result = testdir.runpytest('--doctest-modules')
    result.stdout.fnmatch_lines(['*docstring_full_context_around_error*', '003*text-line-1', '004*text-line-2', '006*>>> 1 + 1', 'Expected:', '    3', 'Got:', '    2'])
Test that we show the whole context before the actual line of a failing
doctest, provided that the context is up to 10 lines long.
def test_docstring_full_context_around_error(self, testdir):
    'Test that we show the whole context before the actual line of a failing\n        doctest, provided that the context is up to 10 lines long.\n        '
    testdir.makepyfile('\n            def foo():\n                "\n                text-line-1\n                text-line-2\n\n                >>> 1 + 1\n                3\n                "\n        ')
    result = testdir.runpytest('--doctest-modules')
    result.stdout.fnmatch_lines(['*docstring_full_context_around_error*', '003*text-line-1', '004*text-line-2', '006*>>> 1 + 1', 'Expected:', '    3', 'Got:', '    2'])