Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ATContentTypes.tests.test_tool.TestTool Class Reference
Inheritance diagram for ATContentTypes.tests.test_tool.TestTool:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.tests.test_tool.TestTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def test_interface
def test_Z3interface
def test_names

Public Attributes

 tool

Detailed Description

Definition at line 38 of file test_tool.py.


Member Function Documentation

Definition at line 40 of file test_tool.py.

00040 
00041     def afterSetUp(self):
00042         self.tool = getToolByName(self.portal, TOOLNAME)
        

Definition at line 43 of file test_tool.py.

00043 
00044     def test_interface(self):
00045         t = self.tool
00046         self.failUnless(IATCTTool.isImplementedBy(t))
00047         self.failUnless(verifyObject(IATCTTool, t))

Definition at line 53 of file test_tool.py.

00053 
00054     def test_names(self):
00055         t = self.tool
00056         self.failUnlessEqual(t.meta_type, 'ATCT Tool')
00057         self.failUnlessEqual(t.getId(), TOOLNAME)
00058         self.failUnlessEqual(t.title, 'ATContentTypes Tool')
00059 
00060 tests.append(TestTool)
00061 

Definition at line 48 of file test_tool.py.

00048 
00049     def test_Z3interface(self):
00050         t = self.tool
00051         iface = Z3IATCTTool
00052         self.failUnless(Z3verifyObject(iface, t))
        

Member Data Documentation

Definition at line 41 of file test_tool.py.


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