Fix wrong assert function name

This is to fix wrong assert function name of asser_called_once_with

Change-Id: I8ce80b7b93d4846219ad886b8531daef56e16fa3
This commit is contained in:
zhufl 2019-06-27 10:50:12 +08:00
parent 6df07c6c7f
commit 3c529c7c4f
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class JsonEncodedTest(test.TestCase):
"[[2, 1], [1, 2]]", None))
with mock.patch("json.loads") as mock_json_loads:
t.process_result_value("[[2, 1], [1, 2]]", None)
mock_json_loads.asser_called_once_with([(2, 1), (1, 2)])
mock_json_loads.assert_called_once_with("[[2, 1], [1, 2]]")
def test_process_result_value_none(self):
t = sa_types.JSONEncodedDict()