def test_add_arguments(self): service = Service(Mock) service.add_arguments(key1='value', key2='other_value') self.assertDictEqual(service._arguments, { 'key1': 'value', 'key2': 'other_value' })
def test_add_arguments_returns_service(self): service = Service(Mock) result = service.add_arguments(key1='value', key2='other_value') self.assertEqual(service, result)