Merge pull request #4080 from Course-Master/redirect

decode uri component before redirect for safe redirect
This commit is contained in:
Ned Batchelder
2014-07-28 10:14:45 -04:00
5 changed files with 38 additions and 4 deletions

View File

@@ -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 "([^"]*)"$')