# HG changeset patch # User lisaq # Date 2016-09-21 11:15:51 # Node ID 9a53b89be16e7ed36d80c1d23b9f1b1beb801c00 # Parent 39831f54d3c52f64ce2b1bec1ffd06507fab7ebd tests: fixing changelog test for new notifications diff --git a/rhodecode/tests/functional/test_changelog.py b/rhodecode/tests/functional/test_changelog.py --- a/rhodecode/tests/functional/test_changelog.py +++ b/rhodecode/tests/functional/test_changelog.py @@ -82,8 +82,7 @@ class TestChangelogController(TestContro assert expected_url in response.location response = response.follow() expected_warning = 'Branch {} is not found.'.format(branch) - assert_response = AssertResponse(response) - assert_response.element_contains('.alert-warning', expected_warning) + assert expected_warning in response.body def assert_commits_on_page(self, response, indexes): found_indexes = [int(idx) for idx in MATCH_HASH.findall(response.body)]