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]))
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))