#NEWLINE# def test_register( self ) : #NEWLINE# #INDENT# def func( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# myhook = TemplateHook ( ) #NEWLINE# myhook . register ( func ) #NEWLINE# self . assertListEqual ( myhook . _registry , [ self ] ) #NEWLINE# self . assertRaises ( AssertionError , myhook . register , 'foo' )