Skip to content

Commit

Permalink
Fix tests for 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffknupp committed Jul 21, 2014
1 parent 45dbfe1 commit 247e5b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_sandman.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ def test_get_attribute(self):
def test_get_meta(self):
"""Test simple HTTP GET"""
response = self.get_response('/', 200)
assert 'meta' in json.loads(response.get_data())['artists']
assert 'meta' in json.loads(response.get_data(as_text=True))['artists']

def test_get_root(self):
"""Test simple HTTP GET"""
response = self.get_response('/artists/meta', 200)
assert 'Name' in json.loads(response.get_data())['Artist']
assert 'Name' in json.loads(response.get_data(as_text=True))['Artist']


def test_get_object_attribute(self):
Expand Down Expand Up @@ -353,7 +353,7 @@ def test_get_html_non_existant_resource(self):
def test_get_meta_html(self):
"""Test simple HTTP GET"""
response = self.get_response('/', 200, headers={'Accept': 'text/html'})
assert 'meta' in response.get_data()
assert 'meta' in response.get_data(as_text=True)


def test_get_html_collection(self):
Expand Down

0 comments on commit 247e5b8

Please sign in to comment.