Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testDocAdded
def testBacklinks
def replaceCreatedIndex
def demoCreate
def moveContent

Public Attributes

 title

Static Public Attributes

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

Detailed Description

Definition at line 191 of file test_linking.py.


Member Function Documentation

Definition at line 193 of file test_linking.py.

00193 
00194     def afterSetUp(self):
00195         WickedTestCase.afterSetUp(self)
00196         self.title = 'Create a New Document'
00197         self.demoCreate()
00198         self.set_text(self.page1, '((%s))' %self.title)
        
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 203 of file test_linking.py.

00203 
00204     def testBacklinks(self):
00205         newdoc = getattr(self.folder, titleToNormalizedId(self.title))
00206         backlinks = newdoc.getRefs(relationship=BACKLINK_RELATIONSHIP)
00207         self.failUnless(self.page1 in backlinks)
        

Here is the call graph for this function:

Definition at line 199 of file test_linking.py.

00199 
00200     def testDocAdded(self):
00201         self.failUnless(getattr(self.folder,
00202                                 titleToNormalizedId(self.title), None))

Here is the call graph for this function:


Member Data Documentation

Definition at line 195 of file test_linking.py.

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: