Skip to content

Commit

Permalink
We need to decode the content so that this test passes on all the Py…
Browse files Browse the repository at this point in the history
…thons
  • Loading branch information
davidmiller committed Mar 9, 2017
1 parent ba81b2d commit 6363fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal/tests/test_api.py
Expand Up @@ -204,7 +204,7 @@ class OurPatientViewSet(api.SubrecordViewSet):

def test_list(self):
response = self.viewset().list(None)
self.assertEqual([], json.loads(response.content))
self.assertEqual([], json.loads(response.content.decode('UTF-8')))

def test_list_with_some_contents(self):
c1 = Colour(name="blue", episode=self.episode).save()
Expand Down Expand Up @@ -234,7 +234,7 @@ def test_list_with_some_contents(self):
u'updated_by_id': None
}
]
self.assertEqual(data, json.loads(response.content))
self.assertEqual(data, json.loads(response.content.decode('UTF-8')))

def test_create(self):
mock_request = MagicMock(name='mock request')
Expand Down

0 comments on commit 6363fd4

Please sign in to comment.