Example #1
0
 def control(self, patch_call, *args, **kwargs):
     kwargs.setdefault('app', Mock(name='app'))
     c = control(*args, **kwargs)
     if patch_call:
         c.call = Mock(name='control.call')
     return c
Example #2
0
 def control(self, patch_call, *args, **kwargs):
     kwargs.setdefault('app', Mock(name='app'))
     c = control(*args, **kwargs)
     if patch_call:
         c.call = Mock(name='control.call')
     return c