예제 #1
0
 def testFailToEncodeZero(self):
     with self.assertRaises(AssertionError):
         util.int_to_base64(0)
예제 #2
0
 def testFailToEncodeZero(self):
     with self.assertRaises(AssertionError):
         util.int_to_base64(0)
예제 #3
0
    def testEncodeDecodePositiveNonZeroInt(self):
        for a in range(1, 1000000, 100):

            self.assertEqual(a, util.base64_to_int(util.int_to_base64(a)))
예제 #4
0
    def testEncodeDecodePositiveNonZeroInt(self):
        for a in range(1, 1000000, 100):

            self.assertEqual(a, util.base64_to_int(util.int_to_base64(a)))