Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
wicked.at.tests.test_linking.TestRemoteLinking Class Reference
Inheritance diagram for wicked.at.tests.test_linking.TestRemoteLinking:
Inheritance graph
[legend]
Collaboration diagram for wicked.at.tests.test_linking.TestRemoteLinking:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testLocalIdBeatsRemoteId
def testLocalTitleBeatsRemoteId
def testInexactLocalTitleNotBlockRemoteTitle
def testInexactLocalTitleNotBlockRemoteId
def replaceCreatedIndex
def demoCreate
def moveContent

Static Public Attributes

string wicked_type = 'IronicWiki'
string wicked_field = 'body'

Detailed Description

Definition at line 264 of file test_linking.py.


Member Function Documentation

Definition at line 266 of file test_linking.py.

00266 
00267     def afterSetUp(self):
00268         super(TestRemoteLinking, self).afterSetUp()
00269         self.set_text(self.page1, '((%s))' % TITLE2)

Here is the call graph for this function:

def wicked.at.tests.test_linking.Base.demoCreate (   self,
  kw 
) [inherited]

Definition at line 24 of file test_linking.py.

00024 
00025     def demoCreate(self, **kw):
00026         self.login('test_user_1_')
00027         addview = self.page1.restrictedTraverse('@@wickedadd')
00028         addview.add_content(title=self.title, section=self.wicked_field, type_name=self.wicked_type)

Here is the call graph for this function:

def wicked.at.tests.test_linking.Base.moveContent (   self,
  obj,
  target 
) [inherited]

Definition at line 29 of file test_linking.py.

00029 
00030     def moveContent(self, obj, target):
00031         cps = obj.aq_parent.manage_copyObjects([obj.getId()])
00032         target.manage_pasteObjects(cps)
00033 
00034 

Here is the caller graph for this function:

replace the 'created' index w/ a field index b/c we need
better than 1 minute resolution for our testing 

Definition at line 15 of file test_linking.py.

00015 
00016     def replaceCreatedIndex(self):
00017         """ replace the 'created' index w/ a field index b/c we need
00018         better than 1 minute resolution for our testing """
00019         cat = getToolByName(self.portal, 'portal_catalog')
00020         cat.delIndex('created')
00021         cat.manage_addIndex('created', 'FieldIndex',
00022                             extra={'indexed_attrs':'created'})
00023         cat.manage_reindexIndex(ids=['created'])
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 304 of file test_linking.py.

00304 
00305     def testInexactLocalTitleNotBlockRemoteId(self):
00306         f2 = makeContent(self.folder, 'f2', 'Folder')
00307         w1 = makeContent(self.folder, 'w1', self.wicked_type,
00308                          title='W1 Title')
00309         w2 = makeContent(f2, 'w2', self.wicked_type,
00310                          title='%s With Extra' % w1.id)
00311         w3 = makeContent(f2, 'w3', self.wicked_type,
00312                          title='W3 Title')
00313         self.set_text(w3, "((%s))" % w1.id)
00314         self.failUnlessWickedLink(w3, w1)
00315         self.failIfWickedLink(w3, w2)
00316         

Here is the call graph for this function:

Definition at line 292 of file test_linking.py.

00292 
00293     def testInexactLocalTitleNotBlockRemoteTitle(self):
00294         f2 = makeContent(self.folder, 'f2', 'Folder')
00295         w1 = makeContent(self.folder, 'w1', self.wicked_type,
00296                          title='W1 Title')
00297         w2 = makeContent(f2, 'w2', self.wicked_type,
00298                          title='%s With Extra' % w1.Title())
00299         w3 = makeContent(f2, 'w3', self.wicked_type,
00300                          title='W3 Title')
00301         self.set_text(w3, "((%s))" % w1.Title())
00302         self.failUnlessWickedLink(w3, w1)
00303         self.failIfWickedLink(w3, w2)

Here is the call graph for this function:

Definition at line 270 of file test_linking.py.

00270 
00271     def testLocalIdBeatsRemoteId(self):
00272         self.replaceCreatedIndex()
00273         f2 = makeContent(self.folder, 'f2', 'Folder')
00274         w1 = makeContent(f2, self.page1.getId(), self.wicked_type,
00275                          title='W1 Title')
00276         w2 = makeContent(f2, 'w2_id', self.wicked_type,
00277                          title='W2 Title')
00278         self.set_text(w2, "((%s))" % self.page1.getId())
00279         self.failIfWickedLink(w2, self.page1)
00280         self.failUnlessWickedLink(w2, w1)

Here is the call graph for this function:

Definition at line 281 of file test_linking.py.

00281 
00282     def testLocalTitleBeatsRemoteId(self):
00283         self.replaceCreatedIndex()
00284         f2 = makeContent(self.folder, 'f2', 'Folder')
00285         w1 = makeContent(f2, 'w1_id', self.wicked_type,
00286                          title=self.page1.id)
00287         w2 = makeContent(f2, 'w2_id', self.wicked_type,
00288                          title='W2 Title')
00289         self.set_text(w2, "((%s))" % self.page1.id)
00290         self.failUnlessWickedLink(w2, w1)
00291         self.failIfWickedLink(w2, self.page1)

Here is the call graph for this function:


Member Data Documentation

string wicked.at.tests.test_linking.Base.wicked_field = 'body' [static, inherited]

Definition at line 13 of file test_linking.py.

string wicked.at.tests.test_linking.Base.wicked_type = 'IronicWiki' [static, inherited]

Definition at line 12 of file test_linking.py.


The documentation for this class was generated from the following file: