'#833: --fixtures only shows fixtures from first file'

def test_show_fixtures_different_files(self, testdir):

    testdir.makepyfile(test_a='\n                                                import    pytest\n\n                                                @pytest.fixture\n                                                def    fix_a():\n                                                                """Fixture    A"""\n                                                                pass\n\n                                                def    test_a(fix_a):\n                                                                pass\n                                ')
    testdir.makepyfile(test_b='\n                                                import    pytest\n\n                                                @pytest.fixture\n                                                def    fix_b():\n                                                                """Fixture    B"""\n                                                                pass\n\n                                                def    test_b(fix_b):\n                                                                pass\n                                ')
    result = testdir.runpytest('--fixtures')
    result.stdout.fnmatch_lines('\n                                                *    fixtures    defined    from    test_a    *\n                                                fix_a\n                                                                Fixture    A\n\n                                                *    fixtures    defined    from    test_b    *\n                                                fix_b\n                                                                Fixture    B\n                                ')
