Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
tests - use the native assertIsInstance() and check for basestring
Browse files Browse the repository at this point in the history
ArmDev 2.0 dropped assertIsA()
  • Loading branch information
joncotton committed May 23, 2015
1 parent 23fbddd commit 7d0a82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion armstrong/hatband/tests/http.py
Expand Up @@ -14,5 +14,5 @@ def test_turns_body_into_json(self):
}

response = JsonResponse(data)
self.assertIsA(response.content, str, msg="sanity check")
self.assertIsInstance(response.content, basestring)
self.assertEqual(json.loads(response.content), data)

0 comments on commit 7d0a82d

Please sign in to comment.