def METHOD_NAME(suite, where):
    test_class = suite.files[-1].add_class()
    suite_test = test_class.add_method_test()
    fixture = suite.slashconf.add_fixture()
    fixture_event = fixture.add_event(name='fixture')
    assert len(suite_test.cls.tests) == 1
    before = suite_test.cls.add_before_method()
    evt1 = before.add_event(name='before')
    after = suite_test.cls.add_after_method()
    evt2 = after.add_event(name='after')
    for func in before, after:
        if func.name in where:
            func.depend_on_fixture(fixture)
            func.append_line('assert {} == {}'.format(fixture.name, fixture.get_value_string()))
    summary = suite.run()
    assert evt1 in summary.events
    assert evt2 in summary.events
    assert fixture_event in summary.events