def test_doctest_unex_importerror_only_txt(self, testdir):
    testdir.maketxtfile('\n            >>> import asdalsdkjaslkdjasd\n            >>>\n        ')
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*>>> import asdals*', '*UNEXPECTED*{e}*'.format(e=MODULE_NOT_FOUND_ERROR), '{e}: No module named *asdal*'.format(e=MODULE_NOT_FOUND_ERROR)])
def test_doctest_unex_importerror_only_txt(self, testdir):
    testdir.maketxtfile('\n            >>> import asdalsdkjaslkdjasd\n            >>>\n        ')
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*>>> import asdals*', '*UNEXPECTED*{e}*'.format(e=MODULE_NOT_FOUND_ERROR), '{e}: No module named *asdal*'.format(e=MODULE_NOT_FOUND_ERROR)])