[CalendarServer-changes] [11713] CalendarServer/branches/users/glyph/log-cleanups/twext/python/test/ test_log.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 17 16:02:25 PDT 2013
Revision: 11713
http://trac.calendarserver.org//changeset/11713
Author: glyph at apple.com
Date: 2013-09-17 16:02:25 -0700 (Tue, 17 Sep 2013)
Log Message:
-----------
long lines.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/log-cleanups/twext/python/test/test_log.py
Modified: CalendarServer/branches/users/glyph/log-cleanups/twext/python/test/test_log.py
===================================================================
--- CalendarServer/branches/users/glyph/log-cleanups/twext/python/test/test_log.py 2013-09-17 23:02:24 UTC (rev 11712)
+++ CalendarServer/branches/users/glyph/log-cleanups/twext/python/test/test_log.py 2013-09-17 23:02:25 UTC (rev 11713)
@@ -999,14 +999,17 @@
errors = self.flushLoggedErrors(exception.__class__)
self.assertEquals(len(errors), 1)
- self.assertIdentical(log.newStyleLogger.emitted["level"], LogLevel.error)
+ self.assertIdentical(log.newStyleLogger.emitted["level"],
+ LogLevel.error)
self.assertEquals(log.newStyleLogger.emitted["format"], None)
- self.assertIdentical(log.newStyleLogger.emitted["kwargs"]["failure"].__class__, Failure)
- self.assertIdentical(log.newStyleLogger.emitted["kwargs"]["failure"].value, exception)
- self.assertIdentical(log.newStyleLogger.emitted["kwargs"]["why"], why)
+ emittedKwargs = log.newStyleLogger.emitted["kwargs"]
+ self.assertIdentical(emittedKwargs["failure"].__class__, Failure)
+ self.assertIdentical(emittedKwargs["failure"].value, exception)
+ self.assertIdentical(emittedKwargs["why"], why)
for key, value in kwargs.items():
- self.assertIdentical(log.newStyleLogger.emitted["kwargs"][key], value)
+ self.assertIdentical(log.newStyleLogger.emitted["kwargs"][key],
+ value)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130917/b16ce068/attachment.html>
More information about the calendarserver-changes
mailing list