def setUp(self):
     self.cc = make_connected_client()
     self.cc.local_jid = TEST_FROM
     self.s = ibb.IBBService(self.cc, )
     protocol_factory = unittest.mock.Mock()
     self.handle, self.protocol = run_coroutine(
         self.s.open_session(protocol_factory, TEST_JID1))
     self.cc.send.mock_calls.clear()
 def setUp(self):
     self.cc = make_connected_client()
     self.cc.local_jid = TEST_FROM
     self.s = ibb.IBBService(self.cc, )