def test_sanity_equal_alice_and_bob_secrets_return_true(self): alice_secret = 500 bob_secret = 500 alice = Alice(alice_secret, 11, 88) bob = Bob(bob_secret, 50, 15) alice_one = alice.message_one() bob_two = bob.message_two(alice_one) alice_three = alice.message_three(bob_two) bob_four = bob.message_four(alice_three) alice_five = alice.message_five(bob_four) assert_true(alice.matching) assert_true(bob.matching)
def test_equal_alice_and_bob_secrets_return_true(self): alice_secret = 1 bob_secret = 1 alice = Alice(alice_secret, 13, 21) bob = Bob(bob_secret, 11, 5) alice_one = alice.message_one() bob_two = bob.message_two(alice_one) alice_three = alice.message_three(bob_two) bob_four = bob.message_four(alice_three) alice_five = alice.message_five(bob_four) assert_true(alice.matching) assert_true(bob.matching)
def test_unequal_alice_and_bob_secrets_return_false(self): alice_secret = 5 bob_secret = 10 alice = Alice(alice_secret, 13, 21) bob = Bob(bob_secret, 88, 99) alice_one = alice.message_one() bob_two = bob.message_two(alice_one) alice_three = alice.message_three(bob_two) bob_four = bob.message_four(alice_three) alice_five = alice.message_five(bob_four) assert_false(alice.matching) assert_false(bob.matching)