#NEWLINE# def test_daemon_should_create_normal_logs( self ) : #NEWLINE# #INDENT# '\n        When using only --do-daemon (without --stdout) logs must be\n        redirected to log file.\n        ' #NEWLINE# opts = FakeOptions ( app_path = '/some/path' , no_daemon = True , stdout = False , debug = None , chroot = None ) #NEWLINE# with patch ( 'logging.FileHandler' ) : #NEWLINE# #INDENT# cli = Cli ( ) #NEWLINE# cli . _set_loggers ( opts ) #NEWLINE# self . assertEquals ( 1 , logging . FileHandler . call_count ) #NEWLINE# self . assertEquals ( ( ( '/some/path/logs/wsgid.log' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , logging . FileHandler . call_args )