#NEWLINE# @ mock . patch ( 'google.appengine.api.taskqueue.Queue' , autospec = True ) #NEWLINE# def test_start_runs_successfully( self , queue_mock ) : #NEWLINE# #INDENT# 'Ensure the Task is inserted into the specified queue.' #NEWLINE# from furious.async import Async #NEWLINE# async_job = Async ( 'something' , queue = 'my_queue' ) #NEWLINE# async_job . start ( ) #NEWLINE# queue_mock . assert_called_once_with ( name = 'my_queue' ) #NEWLINE# self . assertTrue ( queue_mock . return_value . add . called )