#NEWLINE# @ patch ( 'simple_db_migrate.main.SimpleDBMigrate' ) #NEWLINE# @ patch ( 'simple_db_migrate.main.LOG' ) #NEWLINE# @ patch ( 'simple_db_migrate.main.CLI.msg' ) #NEWLINE# def test_it_should_write_the_message_to_cli( self , cli_mock , log_mock , simpledbmigrate_mock ) : #NEWLINE# #INDENT# main = Main ( sgdb = Mock ( ) , config = Config ( log_mock . initial_config ) ) #NEWLINE# main . _execution_log ( 'message to log' , color = 'RED' , log_level_limit = 1 ) #NEWLINE# cli_mock . assert_called_with ( 'message to log' , 'RED' )