def test_get_params_optional(self): params = { 'foo': 'hello', 'bar': 'world', } assert Service.get_params(params, ['foo'], ['bar']) == { 'foo': 'hello', 'bar': 'world', } assert Service.get_params(params, ['foo'], ['bar', 'baz']) == { 'foo': 'hello', 'bar': 'world', }
def test_get_params_mandatory(self): params = { 'foo': 'hello', 'bar': 'world', } assert Service.get_params(params, ['foo', 'bar']) == { 'foo': 'hello', 'bar': 'world', }