human
Complete the below
@with_setup(step_runner_environ)
def test_steps_that_match_groups_and_named_groups_takes_just_named_as_params():

    ''''Steps that match groups and named groups takes just the named as parameters'
    '''

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
    @step('(he|she)    gets    a    (?P<what>\\w+)')
    def given_action_named(step, what):
        assert_equals(what, 'caipirinha')
    f = Feature.from_string(FEATURE6)
    feature_result = f.run()
    scenario_result = feature_result.scenario_results[0]
    assert_equals(len(scenario_result.steps_passed), 1)
    assert_equals(scenario_result.total_steps, 1)