Back to index

plone3  3.1.7
Classes | Functions
Archetypes.tests.test_event Namespace Reference

Classes

class  IObject1
class  IObject2
class  IObject3
class  Dummy
class  PreValidation
class  PostValidation
class  ValidationEventTests

Functions

def created_handler
def initialized_handler
def edited_handler
def test_suite

Detailed Description

Unittests for the events fired by Archetypes.

Function Documentation

Definition at line 56 of file test_event.py.

00056 
00057 def created_handler(ob, event):
00058     ob._createdCaught = True
    
def Archetypes.tests.test_event.edited_handler (   ob,
  event 
)

Definition at line 62 of file test_event.py.

00062 
00063 def edited_handler(ob, event):
00064     ob._editedCaught = True

Definition at line 59 of file test_event.py.

00059 
00060 def initialized_handler(ob, event):
00061     ob._initializedCaught = True
    

Definition at line 163 of file test_event.py.

00163 
00164 def test_suite():
00165     from unittest import TestSuite, makeSuite
00166     suite = TestSuite()
00167     suite.addTest(makeSuite(ValidationEventTests))
00168     return suite