'The container name stored on returned ``Unit`` instances matches the
expected container name.'

def test_container_name(self):

    client = self.make_client()
    name = random_name(self)
    self.addCleanup(client.remove, name)
    d = client.add(name, u'busybox:latest')
    d.addCallback((lambda _: client.list()))
    def got_list(units):
        unit = [unit for unit in units if (unit.name == name)][0]
        self.assertEqual(unit.container_name, (self.namespacing_prefix + name))
    d.addCallback(got_list)
    return d
