<s> class TestPluginMethod ( object ) : <EOL> def __init__ ( self , fn = None ) : <EOL> self . calls = [ ] <EOL> self . fn = fn <EOL> def __call__ ( self , * args , ** kwargs ) : <EOL> self . calls . append ( { '<STR_LIT:args>' : args , '<STR_LIT>' : kwargs } ) <EOL> if self . fn is not None : <EOL> return self . fn ( * args , ** kwargs ) <EOL> preBuildPage = TestPluginMethod ( lambda page , context , data : ( context , data , ) ) <EOL> postBuildPage = TestPluginMethod ( ) <EOL> preBuild = TestPluginMethod ( ) <EOL> postBuild = TestPluginMethod ( ) <EOL> preDeploy = TestPluginMethod ( ) <EOL> postDeploy = TestPluginMethod ( ) <EOL> preDeployFile = TestPluginMethod ( ) <EOL> ORDER = <NUM_LIT:2> </s>
