#NEWLINE# def test_new_callable_create( self ) : #NEWLINE# #INDENT# non_existent_attr = ( '%s.weeeee' % foo_name ) #NEWLINE# p = patch ( non_existent_attr , new_callable = NonCallableMock ) #NEWLINE# self . assertRaises ( AttributeError , p . start ) #NEWLINE# p = patch ( non_existent_attr , new_callable = NonCallableMock , create = True ) #NEWLINE# m = p . start ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . assertNotCallable ( m , magic = False ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# p . stop ( )