#NEWLINE# def test_get_docker_run_cmd_with_env_vars( ) : #NEWLINE# #INDENT# memory = 555 #NEWLINE# random_port = 666 #NEWLINE# container_name = ( ( 'Docker' * 6 ) + 'Doc' ) #NEWLINE# volumes = [ '7_Brides_for_7_Brothers' , '7-Up' , '7-11' ] #NEWLINE# env = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# 'baz' : 'qux' , #NEWLINE# 'x' : ' with spaces' , #NEWLINE# #UNINDENT# } #NEWLINE# interactive = False #NEWLINE# docker_hash = ( '8' * 40 ) #NEWLINE# command = None #NEWLINE# hostname = 'fake_hostname' #NEWLINE# net = 'bridge' #NEWLINE# actual = get_docker_run_cmd ( memory , random_port , container_name , volumes , env , interactive , docker_hash , command , hostname , net ) #NEWLINE# assert ( '--env="foo=bar"' in actual ) #NEWLINE# assert ( '--env="baz=qux"' in actual ) #NEWLINE# assert ( '--env="x= with spaces"' in actual )