#NEWLINE# @ mock . patch ( 'argparse.ArgumentParser.parse_args' ) #NEWLINE# @ mock . patch ( 'os.execl' ) #NEWLINE# def test_exec_gunicorn( self , mock_execl , mock_parse_args ) : #NEWLINE# #INDENT# run . run_gunicorn ( ) #NEWLINE# self . assertEqual ( mock_parse_args . call_count , 1 ) #NEWLINE# self . assertTrue ( mock_execl . call_args [ 0 ] [ 0 ] . endswith ( 'gunicorn' ) )