From 7d0a82d1a4e7e4765ebd2f7d5ec281eaf639c133 Mon Sep 17 00:00:00 2001 From: Jon Cotton Date: Tue, 19 May 2015 21:05:16 -0700 Subject: [PATCH] tests - use the native assertIsInstance() and check for basestring ArmDev 2.0 dropped assertIsA() --- armstrong/hatband/tests/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armstrong/hatband/tests/http.py b/armstrong/hatband/tests/http.py index b1bf696..f0f3a0f 100644 --- a/armstrong/hatband/tests/http.py +++ b/armstrong/hatband/tests/http.py @@ -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)