'Test detecting invalid base64 data with = as a prefix
to the character data.'

def testInvalidBase64PrefixEqual(self):

    iq = Iq(xml=ET.fromstring('\n                                        <iq    type="set"    id="0"    to="tester@localhost">\n                                                <data    xmlns="http://jabber.org/protocol/ibb"    seq="0">\n                                                        =ABCDEFGH\n                                                </data>\n                                        </iq>\n                                '))
    errored = False
    try:
        data = iq['ibb_data']['data']
    except XMPPError:
        errored = True
    self.assertTrue(errored, '=ABCDEFGH    did    not    raise    base64    error')
