Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.testing.BodyAdapterTestCase Class Reference
Inheritance diagram for GenericSetup.testing.BodyAdapterTestCase:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.testing.BodyAdapterTestCase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_z3interfaces
def test_body_get
def test_body_set

Detailed Description

Definition at line 82 of file testing.py.


Member Function Documentation

Definition at line 87 of file testing.py.

00087 
00088     def test_body_get(self):
00089         self._populate(self._obj)
00090         context = DummySetupEnviron()
00091         adapted = getMultiAdapter((self._obj, context), IBody)
00092         self.assertEqual(adapted.body, self._BODY)

Here is the call graph for this function:

Definition at line 93 of file testing.py.

00093 
00094     def test_body_set(self):
00095         context = DummySetupEnviron()
00096         adapted = getMultiAdapter((self._obj, context), IBody)
00097         adapted.body = self._BODY
00098         self._verifyImport(self._obj)
00099         self.assertEqual(adapted.body, self._BODY)
00100 
00101         # now in update mode
00102         context._should_purge = False
00103         adapted = getMultiAdapter((self._obj, context), IBody)
00104         adapted.body = self._BODY
00105         self._verifyImport(self._obj)
00106         self.assertEqual(adapted.body, self._BODY)
00107 
00108         # and again in update mode
00109         adapted = getMultiAdapter((self._obj, context), IBody)
00110         adapted.body = self._BODY
00111         self._verifyImport(self._obj)
00112         self.assertEqual(adapted.body, self._BODY)
00113 

Here is the call graph for this function:

Definition at line 84 of file testing.py.

00084 
00085     def test_z3interfaces(self):
00086         verifyClass(IBody, self._getTargetClass())


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