def test_can_forward_on_history(self): "should be able to forward history" url = "%s/iframe" % EXAMPLE_APP.rstrip('/') self.browser.visit(url) self.browser.back() self.browser.forward() self.assertEqual(url, self.browser.url)
def test_can_back_on_history(self): "should be able to back on history" self.browser.visit("%s/iframe" % EXAMPLE_APP.rstrip('/')) self.browser.back() self.assertEqual(EXAMPLE_APP, self.browser.url)