Beispiel #1
0
 def test_create_client(self):
     store = InMemoryCardStore()
     callback = lambda channel_name, card: None
     client = yield store.create_client(callback)
     self.assertTrue(IClient.providedBy(client))
     self.assertTrue(isinstance(client, InMemoryClient))
     self.assertTrue(isinstance(client.client_id, str))
     self.assertEqual(client.callback, callback)
Beispiel #2
0
 def test_create_client(self):
     store = InMemoryCardStore()
     callback = lambda channel_name, card: None
     client = yield store.create_client(callback)
     self.assertTrue(IClient.providedBy(client))
     self.assertTrue(isinstance(client, InMemoryClient))
     self.assertTrue(isinstance(client.client_id, str))
     self.assertEqual(client.callback, callback)
Beispiel #3
0
 def test_implements_IClient(self):
     client = mk_client()
     self.assertTrue(IClient.providedBy(client))
Beispiel #4
0
 def test_implements_IClient(self):
     client = mk_client()
     self.assertTrue(IClient.providedBy(client))