Esempio n. 1
0
 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',
     }
Esempio n. 2
0
 def test_get_params_mandatory(self):
     params = {
         'foo': 'hello',
         'bar': 'world',
     }
     assert Service.get_params(params, ['foo', 'bar']) == {
         'foo': 'hello',
         'bar': 'world',
     }