def test_self_reference_external_link(self):
    service = Service(name='foo', external_links=['default_foo_1'])
    with pytest.raises(DependencyError):
        service.get_container_name('foo', 1)
def test_self_reference_external_link(self):
    service = Service(name='foo', external_links=['default_foo_1'])
    with pytest.raises(DependencyError):
        service.get_container_name('foo', 1)