Пример #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
 def test_int(self):
     num = 22
     self.assertEqual(num, ord(top.b64d(top.b64e(num))))
Пример #5
0
 def test_b64_allASCII(self):
     msg = ''.join([chr(x) for x in range(256)])
     self.assertEqual(msg, top.b64d(top.b64e(msg)))
Пример #6
0
 def test_b64_hello(self):
     self.assertEqual("hello", top.b64d(top.b64e("hello")))