'Asserts that a given log message occurred with an expected message.'

def _assertLogged(self, expected):

    logItem = self.catcher.pop()
    self.assertEqual(logItem['message'][0], expected)
    self.assertEqual(self.catcher, [], ('An    additional    log    occurred:    %r' % (logItem,)))
