def step_impl(context): _builder.set_request_params(context, context.table)
def test_request_parameter_values_are_resolved(self): actual_params = TableDouble(resolve_values=True) expected_params = {'id': '5', 'name': 'resolved name'} _builder.set_request_params(self.context, actual_params) assert_that(self.context.request_params).is_equal_to(expected_params)
def test_request_parameter_names_are_resolved(self): actual_params = TableDouble(resolve_names=True) expected_params = {'resolved_param1': 'foo', 'resolved_param2': 'bar'} _builder.set_request_params(self.context, actual_params) assert_that(self.context.request_params).is_equal_to(expected_params)
def test_request_parameters_are_set_in_context(self): actual_params = TableDouble() expected_params = {'id': '4', 'name': 'foo_bar'} _builder.set_request_params(self.context, actual_params) assert_that(self.context.request_params).is_equal_to(expected_params)