def _assertLogged(self, expected):
    '\n        Asserts that a given log message occurred with an expected message.\n        '
    logItem = self.catcher.pop()
    self.assertEqual(logItem['message'][0], expected)
    self.assertEqual(self.catcher, [], ('An additional log occurred: %r' % (logItem,)))
Asserts that a given log message occurred with an expected message.
def _assertLogged(self, expected):
    '\n        \n        '
    logItem = self.catcher.pop()
    self.assertEqual(logItem['message'][0], expected)
    self.assertEqual(self.catcher, [], ('An additional log occurred: %r' % (logItem,)))