def test_result_updatable(self):
     """ Test if Result is updatable and `update` actually updates `data`
     """
     result = Result({'a': 0})
     result.update(a=1, b=2)
     self.assertEqual(result.data, {'a': 1, 'b': 2})
Exemple #2
0
 def test_result_updatable(self):
     """Test if Result is updatable and `update` actually updates `data`"""
     result = Result({"a": 0})
     result.update(a=1, b=2)
     self.assertEqual({"a": 1, "b": 2}, result.data)