예제 #1
0
def test_has_live_services(
    mocker,
    fake_uuid,
    get_services_mock,
    expected_return_value
):
    get_services_mock(mocker, fake_uuid)
    assert has_live_services(12345) == expected_return_value
예제 #2
0
def test_has_live_services_when_there_are_no_services(
        mock_get_services_with_no_services):
    assert has_live_services(12345) is False
예제 #3
0
def test_has_live_services_when_service_is_not_live(
        mock_get_services_with_one_service):
    assert has_live_services(12345) is False
예제 #4
0
def test_has_live_services(mock_get_services):
    assert has_live_services(12345) is True