Skip to content

Commit

Permalink
use assertTrue instead of assertIn, which is not available in python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldiascosta committed Feb 11, 2019
1 parent b049ca4 commit 04409e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_request_methods(self):
status, headers = self.client.head()
self.assertEqual(status, 200)
self.assertTrue(headers)
self.assertIn('X-GitHub-Media-Type', headers)
self.assertTrue('X-GitHub-Media-Type' in headers)
try:
status, body = self.client.user.emails.post(body='[email protected]')
self.assertTrue(False, 'posting to unauthorized endpoint did not trhow a http error')
Expand Down

0 comments on commit 04409e0

Please sign in to comment.