def test_lazy_fixture_ids(testdir):
    testdir.makepyfile('\n        import pytest\n        from pytest_lazyfixture import lazy_fixture\n\n        @pytest.fixture()\n        def foo():\n            return "foo"\n\n        @pytest.fixture(params=[\'spam\', \'eggs\'])\n        def bar(request):\n            return "bar-{}".format(request.param)\n\n        @pytest.mark.parametrize("data", [lazy_fixture("foo"),\n                                          lazy_fixture("bar")])\n        def test_the_thing(data):\n            assert False\n    ')
    result = testdir.runpytest('--collect-only')
    stdout = result.stdout.str()
    assert ('test_the_thing[foo]' in stdout)
    assert ('test_the_thing[bar-spam]' in stdout)
    assert ('test_the_thing[bar-eggs]' in stdout)
def test_lazy_fixture_ids(testdir):
    testdir.makepyfile('\n        import pytest\n        from pytest_lazyfixture import lazy_fixture\n\n        @pytest.fixture()\n        def foo():\n            return "foo"\n\n        @pytest.fixture(params=[\'spam\', \'eggs\'])\n        def bar(request):\n            return "bar-{}".format(request.param)\n\n        @pytest.mark.parametrize("data", [lazy_fixture("foo"),\n                                          lazy_fixture("bar")])\n        def test_the_thing(data):\n            assert False\n    ')
    result = testdir.runpytest('--collect-only')
    stdout = result.stdout.str()
    assert ('test_the_thing[foo]' in stdout)
    assert ('test_the_thing[bar-spam]' in stdout)
    assert ('test_the_thing[bar-eggs]' in stdout)