Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #4
0
def test_has_live_services(mock_get_services):
    assert has_live_services(12345) is True