Skip to content

Commit fc4c999

Browse files
committedMay 29, 2015
Test for .json() parsing.
1 parent 9aa46a9 commit fc4c999

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎gcm/test.py

+2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def test_make_request_header(self, mock_request):
191191
self.assertEqual(self.gcm.headers['Content-Type'],
192192
'application/json'
193193
)
194+
self.assertTrue(mock_request.return_value.json.called)
195+
194196

195197
@patch('requests.post')
196198
def test_make_request_plaintext(self, mock_request):

0 commit comments

Comments
 (0)
Please sign in to comment.