def test_variation(suite, suite_test):
    fixture = suite.slashconf.add_fixture()
    param = fixture.add_parameter()
    suite_test.depend_on_fixture(fixture)
    suite_test.append_line('slash.context.result.data["variation"] = slash.context.test.__slash__.variation.values.copy()')
    summary = suite.run()
    for result in summary.get_all_results_for_test(suite_test):
        assert (len(result.data['variation']) == 1)
        assert (fixture.name not in result.data['variation'])
        assert ('{}.{}'.format(fixture.name, param.name) in result.data['variation'])
def test_variation(suite, suite_test):
    fixture = suite.slashconf.add_fixture()
    param = fixture.add_parameter()
    suite_test.depend_on_fixture(fixture)
    suite_test.append_line('slash.context.result.data["variation"] = slash.context.test.__slash__.variation.values.copy()')
    summary = suite.run()
    for result in summary.get_all_results_for_test(suite_test):
        assert (len(result.data['variation']) == 1)
        assert (fixture.name not in result.data['variation'])
        assert ('{}.{}'.format(fixture.name, param.name) in result.data['variation'])