def create_container_for_test(case, client, name=None):
 if (name is None):
  name = random_name(case=case)
 expected_container = Container(node_uuid=uuid4(), name=name, image=DockerImage.from_string(u'nginx'))
 d = client.create_container(node_uuid=expected_container.node_uuid, name=expected_container.name, image=expected_container.image)
 return (expected_container, d)

def create_container_for_test ( case , client , name = None ) : if ( name is None ) : name = random_name ( case = case ) expected_container = Container ( node_uuid = uuid4 ( ) , name = name , image = DockerImage . from_string ( u'nginx' ) ) d = client . create_container ( node_uuid = expected_container . node_uuid , name = expected_container . name , image = expected_container . image ) return ( expected_container , d )
use the api client to create a new container for the running test .