Skip to content

Commit

Permalink
Replace assert_true with assert_in
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Jul 1, 2015
1 parent 2863a05 commit 013040b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/controllers/test_util.py
@@ -1,4 +1,4 @@
from nose.tools import assert_equal, assert_true
from nose.tools import assert_equal, assert_in
from pylons.test import pylonsapp
import paste.fixture

Expand Down Expand Up @@ -48,7 +48,7 @@ def test_set_timezone_valid(self):
url=url_for(controller='util', action='set_timezone_offset', offset='600'),
status=200,
)
assert_true('utc_timezone_offset: 600' in response)
assert_in('"utc_timezone_offset": 600', response)

def test_set_timezone_string(self):
app = self._get_test_app()
Expand Down

0 comments on commit 013040b

Please sign in to comment.