示例#1
0
 def test_int(self):
   num = 22
   self.assertEqual(num, ord(top.b64d(top.b64e(num))))
示例#2
0
 def test_b64_allASCII(self):
   msg = ''.join([chr(x) for x in range(256)])
   self.assertEqual(msg, top.b64d(top.b64e(msg)))
示例#3
0
 def test_b64_hello(self):
   self.assertEqual("hello", top.b64d(top.b64e("hello")))
示例#4
0
文件: test.py 项目: Antony25/xmldsig
 def test_int(self):
     num = 22
     self.assertEqual(num, ord(top.b64d(top.b64e(num))))
示例#5
0
文件: test.py 项目: Antony25/xmldsig
 def test_b64_allASCII(self):
     msg = ''.join([chr(x) for x in range(256)])
     self.assertEqual(msg, top.b64d(top.b64e(msg)))
示例#6
0
文件: test.py 项目: Antony25/xmldsig
 def test_b64_hello(self):
     self.assertEqual("hello", top.b64d(top.b64e("hello")))