From 013040bb384e118ea9d84a84881bdd93a2098bcd Mon Sep 17 00:00:00 2001 From: Stefan Oderbolz Date: Wed, 1 Jul 2015 16:36:45 +0200 Subject: [PATCH] Replace assert_true with assert_in --- ckan/tests/controllers/test_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/tests/controllers/test_util.py b/ckan/tests/controllers/test_util.py index 2c249df7f27..c352c41f9ed 100644 --- a/ckan/tests/controllers/test_util.py +++ b/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 @@ -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()