def test_trying_to_reset_unset_param_raises_exception(self): with self.assertRaises(ParameterNotFoundException): p = Params() p.reset_param('key', 'new_value')
def test_reset_param(self): p = Params() v = "some_value" p.add(key=v) p.reset_param('key', 'new_value') self.assertEqual(p.get('key'), 'new_value')