#NEWLINE# def test_no_environment_sets_path( self ) : #NEWLINE# #INDENT# fake_conn = Mock ( ) #NEWLINE# fake_conn . gateway . remote_exec . return_value = fake_conn #NEWLINE# fake_conn . receive . return_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# result = process . extend_path ( fake_conn , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( result [ 'env' ] [ 'PATH' ] == self . path )