def test_network_mode_service_no_containers(self):
    service_name = 'web'
    self.mock_client.containers.return_value = []
    service = Service(name=service_name, client=self.mock_client)
    network_mode = ServiceNetworkMode(service)
    assert (network_mode.id == service_name)
    assert (network_mode.mode is None)
    assert (network_mode.service_name == service_name)
def test_network_mode_service_no_containers(self):
    service_name = 'web'
    self.mock_client.containers.return_value = []
    service = Service(name=service_name, client=self.mock_client)
    network_mode = ServiceNetworkMode(service)
    assert (network_mode.id == service_name)
    assert (network_mode.mode is None)
    assert (network_mode.service_name == service_name)