Last change
on this file since 1552 was
205,
checked in by chervol, 18 years ago
|
fixed labels in configlet
|
File size:
940 bytes
|
Line | |
---|
1 | |
---|
2 | Test Add/Update canonical_url |
---|
3 | ================== |
---|
4 | |
---|
5 | >>> self.loginAsManager() |
---|
6 | >>> response = self.publish('/plone/portal_pingtool/manage_overview', self.basic_auth) |
---|
7 | >>> 'value="Add"' in response.getBody() |
---|
8 | True |
---|
9 | >>> self.failUnless(self.portal.getProperty('canonical_url', None) is None) |
---|
10 | >>> self.portal.manage_addProperty('canonical_url', 'localhost', 'string') |
---|
11 | >>> self.failUnless(self.portal.getProperty('canonical_url', None) == 'localhost') |
---|
12 | >>> response = self.publish('/plone/portal_pingtool/manage_overview', self.basic_auth) |
---|
13 | >>> 'value="Add"' in response.getBody() |
---|
14 | False |
---|
15 | >>> 'value="Update"' in response.getBody() |
---|
16 | True |
---|
17 | >>> self.portal.manage_changeProperties(canonical_url='') |
---|
18 | >>> response = self.publish('/plone/portal_pingtool/manage_overview', self.basic_auth) |
---|
19 | >>> 'value="Add"' in response.getBody() |
---|
20 | False |
---|
21 | >>> 'value="Update"' in response.getBody() |
---|
22 | True |
---|
Note: See
TracBrowser
for help on using the repository browser.