#NEWLINE# def test_AlreadyRegistered_should_return_non_False_for_registered_commands( self ) : #NEWLINE# #INDENT# command_register = self . _create_command_register_with_core_mock ( ) #NEWLINE# flexmock ( command_register ) #NEWLINE# command_register . should_receive ( 'Search' ) . and_return ( [ { #NEWLINE# #INDENT# 'Status' : 'Finished' , #NEWLINE# 'Target' : 'target' , #NEWLINE# #UNINDENT# } ] ) . once ( ) #NEWLINE# registered = command_register . AlreadyRegistered ( 'Command' ) #NEWLINE# assert_that ( registered , is_not ( False ) ) #NEWLINE# assert_that ( ( registered is not None ) )