#NEWLINE# @ patch ( 'os.path.exists' ) #NEWLINE# @ patch ( 'subprocess.Popen' ) #NEWLINE# def test_launch_ok( self , popen , exists ) : #NEWLINE# #INDENT# exists . return_value = True #NEWLINE# co = Config ( ) #NEWLINE# co . defaults . gamepath = '/home/games/EVE Online' #NEWLINE# co . defaults . winecmd = None #NEWLINE# lc = LaunchConfig ( co . defaults ) #NEWLINE# to = 'TOKEN' #NEWLINE# launch ( co , lc , to ) #NEWLINE# popen . assert_called_with ( '"/home/games/EVE Online/bin/ExeFile.exe" /ssoToken=TOKEN /noconsole' , shell = True )