'Ensure bad UTF-8 is flagged as such, but still decoded.'

def testDecodeBadUTF8(self):

    loggedEvents = []
    self.assertEquals(xmlEncoding.decode(ctAX, 'utf-8', '<x>\xa3</x>', loggedEvents)[(-1)], u'<x>\ufffd</x>')
    self.assert_(loggedEvents)
    self.assertEquals(loggedEvents[(-1)].__class__, UnicodeError)
