From 412e6d34998fabb908d395425d9822ad280bcc3a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 23 Jul 2014 10:56:43 -0400 Subject: [PATCH] Add a more informative assert to a lettuce helper --- common/djangoapps/terrain/steps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/terrain/steps.py b/common/djangoapps/terrain/steps.py index 32dc4db432..5e20b0a1d0 100644 --- a/common/djangoapps/terrain/steps.py +++ b/common/djangoapps/terrain/steps.py @@ -81,7 +81,9 @@ def click_the_link_with_the_text_group1(step, linktext): @step('I should see that the path is "([^"]*)"$') def i_should_see_that_the_path_is(step, path): - assert world.url_equals(path) + assert world.url_equals(path), ( + "path should be {!r} but is {!r}".format(path, world.browser.url) + ) @step(u'the page title should be "([^"]*)"$')