def test_is_jid(self): self.assertTrue(utils.is_jid('20131219110700123489')) # Valid JID self.assertFalse(utils.is_jid(20131219110700123489)) # int self.assertFalse(utils.is_jid('2013121911070012348911111')) # Wrong length
def test_is_jid(self): self.assertTrue(utils.is_jid('20131219110700123489')) # Valid JID self.assertFalse(utils.is_jid(20131219110700123489)) # int self.assertFalse(utils.is_jid('2013121911070012348911111')) # Wrong length