'If the format string is invalid, an error is produced.'

def test_formatFlatEventBadFormat(self):

    event1 = dict(log_format='strrepr:    {string!X}', string='hello')
    flattenEvent(event1)
    event2 = json.loads(json.dumps(event1))
    self.assertTrue(formatEvent(event2).startswith(u'Unable    to    format    event'))
