def testBase64(self): v = vSmart(b'xKFlZMOmxKFod8SBbWzEq2Nhbg==') v.params['ENCODING'] = "BASE64" self.assertEqual(str(v), "ġedæġhwāmlīcan")
def testStr(self): v = vSmart("ġedæġhwāmlīcan") self.assertTrue(v) self.assertEqual(str(v), "ġedæġhwāmlīcan")
def testQuoPri(self): v = vSmart(b'=C4=A1ed=C3=A6=C4=A1hw=C4=81ml=C4=ABcan') v.params['ENCODING'] = "QUOTED-PRINTABLE" self.assertEqual(str(v), "ġedæġhwāmlīcan")
def testEmpty(self): v = vSmart("") self.assertFalse(v) self.assertEqual(str(v), "")