def test_generate_transaction_id_unique(self): transaction_id1 = stun.generate_transaction_id() transaction_id2 = stun.generate_transaction_id() self.assertNotEqual(transaction_id1, transaction_id2)
def test_generate_transaction_id_length(self): transaction_id = stun.generate_transaction_id() self.assertEquals(12, len(transaction_id))