'``DockerClient.remove()`` removes dead units without error.
We use a `busybox` image here, because it will exit immediately and
reach an `inactive` substate of `dead`.'

def test_dead_is_removed(self):

    name = random_name(self)
    d = self.start_container(unit_name=name, image_name='busybox:latest', expected_states=(u'inactive',))
    def remove_container(client):
        client.remove(name)
    d.addCallback(remove_container)
    return d
