Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
CMFDefault.tests.test_DiscussionReply.DiscussionReplyTestMember Class Reference
Inheritance diagram for CMFDefault.tests.test_DiscussionReply.DiscussionReplyTestMember:
Inheritance graph
[legend]
Collaboration diagram for CMFDefault.tests.test_DiscussionReply.DiscussionReplyTestMember:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def site_login
def testDiscussionReply

Public Attributes

 portal
 uf
 discussion
 workflow

Static Public Attributes

 layer = FunctionalLayer

Detailed Description

Definition at line 59 of file test_DiscussionReply.py.


Member Function Documentation

Reimplemented from CMFDefault.tests.test_DiscussionReply.DiscussionReplyTest.

Definition at line 64 of file test_DiscussionReply.py.

00064 
00065     def afterSetUp(self):
00066         DiscussionReplyTest.afterSetUp(self)
00067         self.uf.userFolderAddUser('member', '', ['Member'], [])
00068         self.site_login('member')
00069 

Here is the call graph for this function:

Definition at line 46 of file test_DiscussionReply.py.

00046 
00047     def site_login(self, name):
00048         user = self.uf.getUserById(name)
00049         user = user.__of__(self.uf)
00050         newSecurityManager(None, user)

Here is the caller graph for this function:

Definition at line 51 of file test_DiscussionReply.py.

00051 
00052     def testDiscussionReply(self):
00053         self.discussion.getDiscussionFor(self.portal.doc)
00054         self.portal.doc.talkback.createReply('Title', 'Text')
00055         reply = self.portal.doc.talkback.objectValues()[0]
00056         self.assertEqual(reply.Title(), 'Title')
00057         self.assertEqual(reply.EditableBody(), 'Text')
00058 


Member Data Documentation

Definition at line 39 of file test_DiscussionReply.py.

Definition at line 29 of file test_DiscussionReply.py.

Definition at line 33 of file test_DiscussionReply.py.

Definition at line 35 of file test_DiscussionReply.py.

Definition at line 43 of file test_DiscussionReply.py.


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