Back to index

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

List of all members.

Public Member Functions

def test_z3interfaces
def test_node_get
def test_node_set

Detailed Description

Definition at line 114 of file testing.py.


Member Function Documentation

Definition at line 119 of file testing.py.

00119 
00120     def test_node_get(self):
00121         self._populate(self._obj)
00122         context = DummySetupEnviron()
00123         adapted = getMultiAdapter((self._obj, context), INode)
00124         self.assertEqual(adapted.node.toprettyxml(' '), self._XML)

Here is the call graph for this function:

Definition at line 125 of file testing.py.

00125 
00126     def test_node_set(self):
00127         context = DummySetupEnviron()
00128         adapted = getMultiAdapter((self._obj, context), INode)
00129         adapted.node = parseString(self._XML).documentElement
00130         self._verifyImport(self._obj)
00131         self.assertEqual(adapted.node.toprettyxml(' '), self._XML)
00132 
00133         # now in update mode
00134         context._should_purge = False
00135         adapted = getMultiAdapter((self._obj, context), INode)
00136         adapted.node = parseString(self._XML).documentElement
00137         self._verifyImport(self._obj)
00138         self.assertEqual(adapted.node.toprettyxml(' '), self._XML)
00139 
00140         # and again in update mode
00141         adapted = getMultiAdapter((self._obj, context), INode)
00142         adapted.node = parseString(self._XML).documentElement
00143         self._verifyImport(self._obj)
00144         self.assertEqual(adapted.node.toprettyxml(' '), self._XML)
00145 

Here is the call graph for this function:

Definition at line 116 of file testing.py.

00116 
00117     def test_z3interfaces(self):
00118         verifyClass(INode, self._getTargetClass())


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