diff options
Diffstat (limited to 'tempest_lib/tests/test_rest_client.py')
-rw-r--r-- | tempest_lib/tests/test_rest_client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tempest_lib/tests/test_rest_client.py b/tempest_lib/tests/test_rest_client.py index 0875092..452cef5 100644 --- a/tempest_lib/tests/test_rest_client.py +++ b/tempest_lib/tests/test_rest_client.py @@ -244,6 +244,7 @@ class TestRestClientParseRespJSON(BaseRestClientTestClass): keys[0]: values[0], keys[1]: values[1], }} + null_dict = {} def setUp(self): self.fake_http = fake_http.fake_httplib2() @@ -273,6 +274,10 @@ class TestRestClientParseRespJSON(BaseRestClientTestClass): body = self.rest_client._parse_resp(json.dumps(data)) self.assertEqual(data, body) + def test_parse_nullable_dict(self): + body = self.rest_client._parse_resp(json.dumps(self.null_dict)) + self.assertEqual(self.null_dict, body) + class TestRestClientErrorCheckerJSON(base.TestCase): c_type = "application/json" |