示例#1
0
 def test_trying_to_reset_unset_param_raises_exception(self):
     with self.assertRaises(ParameterNotFoundException):
         p = Params()
         p.reset_param('key', 'new_value')
示例#2
0
 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')