'``DockerClient.list()`` includes dead units.
We use a `busybox` image here, because it will exit immediately and
reach an `inactive` substate of `dead`.
There are no assertions in this test, because it will fail with a
timeout if the unit with that expected state is never listed or if that
unit never reaches that state.'

def test_dead_is_listed(self):

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