def checkColorOut():
     a = TerminalColorOut()
     # # Different color checks ###################
     a.colorLog('1. just  test  test',
                bg=_aColors['BLUE'],
                fg=_aColors['LT_BLUE'],
                b=True,
                ln=True
                )
     a.colorLog('2. just  test  ',
                bg=_aColors['LT_BLACK'],
                f=True,
                ln=True
                )
     a.colorLog('3. just test   ',
                bg=_aColors['LT_CYAN'],
                fg=_aColors['BLACK'],
                i=True,
                b=True
                )
     a.colorLog('4. just test   \r\n',
                bg=_aColors['BLACK'],
                u=True,
                b=True,
                c=True
                )
     print '------ END of ColorOut check ------\n'
    def checkDirectColorLog():
        a = TerminalColorOut()
        # Test of logging methods ##################
        for i in [False, True]:
            a._useFormat = i    # Switch here

            a.notice('It\'s just test NOTICE')
            a.debug('It\'s just my console-color test')
            a.info('Don\'t wonder.')
            a.warning('Can you see this?')
            a.error('How are you?')
            a.critical('Hello %username%')

            print '------ END of DirectColorLog check %s ------\n' % ('with format' if i else 'without format')