예제 #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))