'Test support for multiple --doctest-glob arguments (#1255).'

def test_multiple_patterns(self, testdir):

    testdir.maketxtfile(xdoc='\n                                                >>>    1\n                                                1\n                                ')
    testdir.makefile('.foo', test='\n                                                >>>    1\n                                                1\n                                ')
    testdir.maketxtfile(test_normal='\n                                                >>>    1\n                                                1\n                                ')
    expected = set(['xdoc.txt', 'test.foo', 'test_normal.txt'])
    assert (set((x.basename for x in testdir.tmpdir.listdir())) == expected)
    args = ['--doctest-glob=xdoc*.txt', '--doctest-glob=*.foo']
    result = testdir.runpytest(*args)
    result.stdout.fnmatch_lines(['*test.foo    *', '*xdoc.txt    *', '*2    passed*'])
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*test_normal.txt    *', '*1    passed*'])
