#NEWLINE# @ utils . patch_args ( [ 'mesos-scp' , 'stdout' , '/tmp' ] ) #NEWLINE# def test_single( self ) : #NEWLINE# #INDENT# with mock . patch ( 'subprocess.check_call' , return_value = 0 ) as m : #NEWLINE# #INDENT# mesos . cli . cmds . scp . main ( ) #NEWLINE# m . assert_called_with ( [ 'scp' , '-pr' , 'stdout' , '10.141.141.10:/tmp' ] ) #NEWLINE# assert ( len ( self . lines ) == 3 ) #NEWLINE# assert ( 'uploaded' in self . stdout )