Exemplo n.º 1
0
 def test_dialog_call(self, new_store, run_dialog):
     new_store.return_value = self.store
     call = self.create_call()
     web_view = WebView()
     web_view.app = None
     with mock.patch.object(self.store, 'commit'):
         with mock.patch.object(self.store, 'close'):
             web_view._dialog_call(id=call.id)
             run_dialog.assert_called_once_with(
                 CallsEditor, None, self.store, call, None, None)