summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newton/newton/requests/tests/test_image.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/newton/newton/requests/tests/test_image.py b/newton/newton/requests/tests/test_image.py
index fff04e89..c32ccd50 100644
--- a/newton/newton/requests/tests/test_image.py
+++ b/newton/newton/requests/tests/test_image.py
@@ -14,6 +14,7 @@
import mock
import unittest
+import json
from six.moves import urllib
from rest_framework import status
@@ -93,7 +94,8 @@ class TestImageNewton(unittest.TestCase, AbstractTestResource):
"/api/%s/v0/windriver-hudson-dc_RegionOne/"
"fcca3cc49d5e42caae15459e27103efc/"
"images" % test_base.MULTIVIM_VERSION,
- self.MOCK_POST_RESOURCE_REQUEST,
+ data=json.dumps(self.MOCK_POST_RESOURCE_REQUEST),
+ content_type='application/json',
HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
context = response.json()