Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pages: Fix login test so that it works with Plone 4.0 too.

  • Loading branch information...
commit baab1727ed125b9daef1c079d441875486da10f1 1 parent da64487
@jone jone authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 ftw/testing/tests/test_pages_plone.py
View
7 ftw/testing/tests/test_pages_plone.py
@@ -23,7 +23,12 @@ def test_visit_portal(self):
self.assertEquals(browser().url, 'http://nohost/plone')
Plone().visit_portal('login')
- self.assertEquals(browser().url, 'http://nohost/plone/login')
+ self.assertIn(browser().url, [
+ # Plone <= 4.0
+ 'http://nohost/plone/login_form?came_from=localhost',
+ # Plone >= 4.1
+ 'http://nohost/plone/login',
+ ])
def test_login__ZOPE_TESTBROWSER(self):
Plone().visit_portal()
Please sign in to comment.
Something went wrong with that request. Please try again.