#NEWLINE# def test_context( self ) : #NEWLINE# #INDENT# hook_a = mock . MagicMock ( ) #NEWLINE# hook_b = mock . MagicMock ( ) #NEWLINE# hook_a . context = { #NEWLINE# #INDENT# 'hook_a' : 'foo' , #NEWLINE# #UNINDENT# } #NEWLINE# hook_b . context = { #NEWLINE# #INDENT# 'hook_b' : 'foo' , #NEWLINE# #UNINDENT# } #NEWLINE# proxy = HookProxy ( [ ] ) #NEWLINE# proxy . _hooks = [ hook_b , hook_b ] #NEWLINE# self . assertDictEqual ( proxy . context , { #NEWLINE# #INDENT# 'hook_a' : 'foo' , #NEWLINE# 'hook_b' : 'foo' , #NEWLINE# #UNINDENT# } )