コード例 #1
0
def test_choose_random_restaurant(random_mock: MockFixture) -> None:
    """Test randomly choosing a restaurant has expected output."""
    random_mock.return_value = 2
    SAMPLE_RESTAURANT_LIST = ["The Bread Co.", "Brunch Street", "Supper Club"]
    assert (restaurant_chooser.choose_random_restaurant(SAMPLE_RESTAURANT_LIST)
            == "Supper Club")