diff --git a/ckan/new_tests/controllers/test_util.py b/ckan/new_tests/controllers/test_util.py index bcb6f0c719f..f8f99015853 100644 --- a/ckan/new_tests/controllers/test_util.py +++ b/ckan/new_tests/controllers/test_util.py @@ -14,7 +14,7 @@ def test_redirect_ok(self): params={'url': '/dataset'}, status=302, ) - assert_equal(response.header_dict.get('Location'), + assert_equal(response.headers.get('Location'), 'http://localhost/dataset') def test_redirect_external(self):