Exemplo n.º 1
0
 def test_bad_jid_inject(self):
     jid = JID('test')
     jid.domain = None
     with self.assertRaises(ValueError) as cm:
         jid.validate(True)
Exemplo n.º 2
0
 def test_bad_jid(self):
     jid = JID('test')
     jid.domain = ''
     with self.assertRaises(ValueError):
         cont = Contact(jid)