class TestCommonContact(unittest.TestCase): def setUp(self): self.contact = CommonContact(jid='', account="", resource='', show='', status='', name='', our_chatstate=None, chatstate=None, client_caps=None) def test_default_client_supports(self): ''' Test the caps support method of contacts. See test_caps for more enhanced tests. ''' caps_cache.capscache = caps_cache.CapsCache() self.assertTrue( self.contact.supports(NS_MUC), msg="Must not backtrace on simple check for supported feature") self.contact.client_caps = caps_cache.NullClientCaps() self.assertTrue( self.contact.supports(NS_MUC), msg="Must not backtrace on simple check for supported feature")
def setUp(self): self.contact = CommonContact(jid='', account="", resource='', show='', status='', name='', our_chatstate=None, chatstate=None, client_caps=None)
class TestCommonContact(unittest.TestCase): def setUp(self): self.contact = CommonContact(jid='', account="", resource='', show='', status='', name='', our_chatstate=None, chatstate=None, client_caps=None) def test_default_client_supports(self): ''' Test the caps support method of contacts. See test_caps for more enhanced tests. ''' caps_cache.capscache = caps_cache.CapsCache() self.assertTrue(self.contact.supports(NS_MUC), msg="Must not backtrace on simple check for supported feature") self.contact.client_caps = caps_cache.NullClientCaps() self.assertTrue(self.contact.supports(NS_MUC), msg="Must not backtrace on simple check for supported feature")