'Formatting an event with a bogus format.'

def test_formatEventWeirdFormat(self):

    event = dict(log_format=object(), foo=1, bar=2)
    result = formatEvent(event)
    self.assertIn('Log    format    must    be    unicode    or    bytes', result)
    self.assertIn(repr(event), result)
