예제 #1
0
 def testBase64(self):
     v = vSmart(b'xKFlZMOmxKFod8SBbWzEq2Nhbg==')
     v.params['ENCODING'] = "BASE64"
     self.assertEqual(str(v), "ġedæġhwāmlīcan")
예제 #2
0
 def testStr(self):
     v = vSmart("ġedæġhwāmlīcan")
     self.assertTrue(v)
     self.assertEqual(str(v), "ġedæġhwāmlīcan")
예제 #3
0
 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")
예제 #4
0
 def testEmpty(self):
     v = vSmart("")
     self.assertFalse(v)
     self.assertEqual(str(v), "")