Back to index

plone3  3.1.7
Classes | Functions
wicked.at.tests.test_linking Namespace Reference

Classes

class  Base
class  TestWikiLinking
class  TestDocCreation
class  TestLinkNormalization
class  TestRemoteLinking

Functions

def test_create_titlechange
 
 def test_oldTitleWinsNewId(self):

this will should fail

if title changes don't trigger

id changes

self.replaceCreatedIndex() newtitle = 'I changed my mind' self.page2.update(**dict(title=self.title)) self.newpage.update(**dict(title=newtitle))
def test_suite

Function Documentation

 def test_oldTitleWinsNewId(self):

this will should fail

if title changes don't trigger

id changes

self.replaceCreatedIndex() newtitle = 'I changed my mind' self.page2.update(**dict(title=self.title)) self.newpage.update(**dict(title=newtitle))

page one should still link to new page

even though page2 has same title as link

self.failUnlessWickedLink(self.page1, self.newpage) # delete newpage and recreate

older title should beat newer id

self.loginAsPortalOwner() self.folder.manage_delObjects([self.newpage.getId()]) self.newpage = self.clickCreate(self.page2, self.title) self.failIfWickedLink(self.page1, self.newpage) self.failUnlessWickedLink(self.page1, self.page2)

Definition at line 251 of file test_linking.py.

00251 
00252     def test_create_titlechange(self):
00253         # add content from link
00254         # test link
00255         # change title
00256         # test link
00257         title1 = self.title 
00258 
00259         # if this fails, wicked is not working period
00260         self.failUnlessWickedLink(self.page1, self.newpage)
00261 
00262         self.newpage.update(**dict(title='I changed my mind'))
00263         self.failUnlessWickedLink(self.page1, self.newpage)

Here is the call graph for this function:

Definition at line 317 of file test_linking.py.

00317 
00318 def test_suite():
00319     from wicked.at.link import test_suite as btests
00320     suites = [unittest.makeSuite(tc) for tc in TestDocCreation, TestWikiLinking, TestLinkNormalization, TestRemoteLinking]
00321     suites.append(btests())
00322     suite = unittest.TestSuite(suites)
00323     return suite
00324