Пример #1
0
 def test_verify_hash__no_match(self):
     order = Order(id=1, contact_id=1)
     # Pass the reverse of the orders hash back into itself
     self.assertFalse(order.verify_hash(order.verification_hash[::-1]))
Пример #2
0
 def test_verify_hash__no_match(self):
     order = Order(id=1, contact_id=1)
     # Pass the reverse of the orders hash back into itself
     self.assertFalse(order.verify_hash(order.verification_hash[::-1]))
Пример #3
0
 def test_verify_hash__match(self):
     order = Order(id=1, contact_id=1)
     # Pass the orders hash back into itself
     self.assertTrue(order.verify_hash(order.verification_hash))
Пример #4
0
 def test_verify_hash__match(self):
     order = Order(id=1, contact_id=1)
     # Pass the orders hash back into itself
     self.assertTrue(order.verify_hash(order.verification_hash))