Skip to content

Commit

Permalink
Make test compatible with Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Oct 25, 2014
1 parent 55a0b9e commit 4e845b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phileo/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_like_michael_ajax(self):
response = like_toggle(request, self.user_content_type.pk, michael.pk)
self.assertEquals(response.status_code, 200)
self.assertTrue(self.like_qs.filter(receiver_object_id=michael.pk).exists())
data = json.loads(response.content)
data = json.loads(response.content.decode())
self.assertEquals(data["likes_count"], 1)
self.assertEquals(data["liked"], True)
self.assertTrue("html" in data)

0 comments on commit 4e845b0

Please sign in to comment.