@@ -315,23 +315,23 @@ def test(**kwargs):
315
315
self .assertTrue ('foo' in foo ['kwargs' ])
316
316
self .assertEquals (foo ['kwargs' ]['foo' ], 'bar' )
317
317
318
- # callbacks['before'] = {}
319
- #
320
- # @pre_dispatch(TrackingTestCase.class_method)
321
- # def test(**kwargs):
322
- # foo.update(kwargs)
323
- #
324
- # self.assertTrue(hasattr(TrackingTestCase.class_method, '__wrapped__'))
325
- # self.assertEquals(len(callbacks['before']), 1)
326
- #
327
- # TrackingTestCase.class_method()
328
- #
329
- # self.assertTrue('sender' in foo, foo)
330
- # # best we can do
331
- # self.assertEquals(foo['sender'].__name__, 'class_method')
332
- # self.assertTrue('start' in foo, foo)
333
- # self.assertTrue('stop' not in foo, foo)
334
- # self.assertTrue('args' in foo, foo)
318
+ callbacks ['before' ] = {}
319
+
320
+ @pre_dispatch (TrackingTestCase .class_method )
321
+ def test (** kwargs ):
322
+ foo .update (kwargs )
323
+
324
+ self .assertTrue (hasattr (TrackingTestCase .class_method , '__wrapped__' ))
325
+ self .assertEquals (len (callbacks ['before' ]), 1 )
326
+
327
+ TrackingTestCase .class_method ()
328
+
329
+ self .assertTrue ('sender' in foo , foo )
330
+ # best we can do
331
+ self .assertEquals (foo ['sender' ].__name__ , 'class_method' )
332
+ self .assertTrue ('start' in foo , foo )
333
+ self .assertTrue ('stop' not in foo , foo )
334
+ self .assertTrue ('args' in foo , foo )
335
335
336
336
def test_post_hook (self ):
337
337
foo = {}
0 commit comments