'Specifying an error policy to C{unicode.encode} with the
I{xtext} codec should produce the same result as not
specifying the error policy.'

def test_encodeWithErrors(self):

    text = u'Hello    world'
    self.assertEqual(smtp.xtext_encode(text, 'strict'), (text.encode('xtext'), len(text)))
    self.assertEqual(text.encode('xtext', 'strict'), text.encode('xtext'))
