@@ -142,8 +142,9 @@ def test__make_request_GET_normal(self):
142
142
143
143
# Check the respone
144
144
self .assertEqual (response .status_code , 204 )
145
- self .assertIsInstance (response .content (), _FutureDict )
146
- self .assertIs (target ._properties , response .content ())
145
+ self .assertIsInstance (response .json (), _FutureDict )
146
+ self .assertIsInstance (response .content , _FutureDict )
147
+ self .assertIs (target ._properties , response .content )
147
148
148
149
# The real http request should not have been called yet.
149
150
http .request .assert_not_called ()
@@ -170,8 +171,8 @@ def test__make_request_POST_normal(self):
170
171
'POST' , url , data = {'foo' : 1 }, target_object = target )
171
172
172
173
self .assertEqual (response .status_code , 204 )
173
- self .assertIsInstance (response .content () , _FutureDict )
174
- self .assertIs (target ._properties , response .content () )
174
+ self .assertIsInstance (response .content , _FutureDict )
175
+ self .assertIs (target ._properties , response .content )
175
176
176
177
# The real http request should not have been called yet.
177
178
http .request .assert_not_called ()
@@ -196,8 +197,8 @@ def test__make_request_PATCH_normal(self):
196
197
'PATCH' , url , data = {'foo' : 1 }, target_object = target )
197
198
198
199
self .assertEqual (response .status_code , 204 )
199
- self .assertIsInstance (response .content () , _FutureDict )
200
- self .assertIs (target ._properties , response .content () )
200
+ self .assertIsInstance (response .content , _FutureDict )
201
+ self .assertIs (target ._properties , response .content )
201
202
202
203
# The real http request should not have been called yet.
203
204
http .request .assert_not_called ()
@@ -221,8 +222,8 @@ def test__make_request_DELETE_normal(self):
221
222
222
223
# Check the respone
223
224
self .assertEqual (response .status_code , 204 )
224
- self .assertIsInstance (response .content () , _FutureDict )
225
- self .assertIs (target ._properties , response .content () )
225
+ self .assertIsInstance (response .content , _FutureDict )
226
+ self .assertIs (target ._properties , response .content )
226
227
227
228
# The real http request should not have been called yet.
228
229
http .request .assert_not_called ()
0 commit comments