def test_make_a_move_with_mock_patch_can_defend(randint_mock): randint_mock.return_value = 1 assert_equal(main.make_a_move_with_mock_patch(), "Defend!")
def test_make_a_move_with_mock_patch_can_attack(randint_mock): randint_mock.return_value = 0 assert_equal(main.make_a_move_with_mock_patch(), "Attack!")