equal
deleted
inserted
replaced
24 |
24 |
25 from zope.testbrowser import browser |
25 from zope.testbrowser import browser |
26 |
26 |
27 import os.path |
27 import os.path |
28 |
28 |
|
29 |
29 class MelangeFunctionalTestCase(FunctionalTestCase): |
30 class MelangeFunctionalTestCase(FunctionalTestCase): |
30 """A base class for all functional tests in Melange. |
31 """A base class for all functional tests in Melange. |
31 |
32 |
32 Tests MUST NOT be defined here, but the superclass requires a path |
33 Tests MUST NOT be defined here, but the superclass requires a path |
33 attribute that points to the app.yaml. Utility functions MAY be |
34 attribute that points to the app.yaml. Utility functions MAY be |
51 |
52 |
52 tb = browser.Browser() |
53 tb = browser.Browser() |
53 tb.open("http://127.0.0.1:8080/site/show/site") |
54 tb.open("http://127.0.0.1:8080/site/show/site") |
54 |
55 |
55 self.assertTrue("Powered by Melange" in tb.contents) |
56 self.assertTrue("Powered by Melange" in tb.contents) |
|
57 |
56 |
58 |
57 class TestLogin(MelangeFunctionalTestCase): |
59 class TestLogin(MelangeFunctionalTestCase): |
58 """Tests that check the login system is functioning correctly. |
60 """Tests that check the login system is functioning correctly. |
59 |
61 |
60 Also tests that users go through the correct registration workflow. |
62 Also tests that users go through the correct registration workflow. |
94 tb.open("http://127.0.0.1:8080") |
96 tb.open("http://127.0.0.1:8080") |
95 |
97 |
96 # call to action no longer on front page |
98 # call to action no longer on front page |
97 self.assertFalse('Please create <a href="/user/create_profile">' |
99 self.assertFalse('Please create <a href="/user/create_profile">' |
98 'User Profile</a> in order to view this page' in tb.contents) |
100 'User Profile</a> in order to view this page' in tb.contents) |
99 |
|