#NEWLINE# def test_lookup_executor( self , scheduler ) : #NEWLINE# #INDENT# executor = object ( ) #NEWLINE# scheduler . _executors = { #NEWLINE# #INDENT# 'executor' : executor , #NEWLINE# #UNINDENT# } #NEWLINE# assert ( scheduler . _lookup_executor ( 'executor' ) is executor )