def test_network_mode_container(self):
    container_id = 'abcd'
    network_mode = ContainerNetworkMode(Container(None, {'Id': container_id}))
    assert (network_mode.id == container_id)
    assert (network_mode.mode == ('container:' + container_id))
    assert (network_mode.service_name is None)
def test_network_mode_container(self):
    container_id = 'abcd'
    network_mode = ContainerNetworkMode(Container(None, {'Id': container_id}))
    assert (network_mode.id == container_id)
    assert (network_mode.mode == ('container:' + container_id))
    assert (network_mode.service_name is None)