Permalink
Browse files

Merge pull request #30 from gi11es/patch-1

Make test more flexible to pass on Tornado 4.2.0
  • Loading branch information...
2 parents 66b7c88 + d75d8f2 commit 8114928102ff07166ce32e6d894f30124b5e169a @rfloriano rfloriano committed on GitHub Jun 17, 2016
Showing with 2 additions and 5 deletions.
  1. +2 −5 tests/test_generic_views.py
@@ -99,7 +99,7 @@ def test_passing_only_one_crop_value(self):
response = self.client.get('/gen_url/?' + self.url_query.urlencode())
assert HTTP_BAD_REQUEST == response.status_code, "Got %d" % response.status_code
- assert b("Missing values for cropping. Expected all 'crop_left', 'crop_top', 'crop_right', 'crop_bottom' values.") == response.content
+ assert "Missing values for cropping" in response.content
def test_passing_only_one_crop_with_invalid_value(self):
self.url_query.update({
@@ -113,10 +113,7 @@ def test_passing_only_one_crop_with_invalid_value(self):
response = self.client.get('/gen_url/?' + self.url_query.urlencode())
assert HTTP_BAD_REQUEST == response.status_code, "Got %d" % response.status_code
- assert b(
- '''Invalid values for cropping.
- Expected all 'crop_left', 'crop_top', 'crop_right',
- 'crop_bottom' to be integers.''') == response.content
+ assert "Invalid values for cropping" in response.content
def test_passing_various_erroneous_values(self):
self.url_query.update({

0 comments on commit 8114928

Please sign in to comment.