コード例 #1
0
ファイル: test_order.py プロジェクト: ToeKnee/jelly-roll
 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
ファイル: test_order.py プロジェクト: ToeKnee/jelly-roll
 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
ファイル: test_order.py プロジェクト: ToeKnee/jelly-roll
 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
ファイル: test_order.py プロジェクト: ToeKnee/jelly-roll
 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))