'A non-empty response gets encoded and included as character data.'

def test_onChallengeResponse(self):

    d = self.init.start()
    challenge = domish.Element((NS_XMPP_SASL, 'challenge'))
    challenge.addContent(u'bXkgY2hhbGxlbmdl')
    self.init.mechanism.response = 'response'
    self.init.onChallenge(challenge)
    response = self.output[1]
    self.assertEqual(u'cmVzcG9uc2U=', unicode(response))
    self.init.onSuccess(None)
    return d
