Example #1
0
 def test_base36encode_ok(self):
     '''Test if base36encoding works'''
     self.assertEqual(base36encode(666), 'ii')
Example #2
0
 def test_base36encode_neg_len(self):
     '''Test if base36encoding works'''
     self.assertEqual(base36encode(2), '2')
Example #3
0
 def test_base36encode_not_number(self):
     with self.assertRaises(TypeError):
         base36encode('a')
Example #4
0
 def test_base36encode_neg(self):
     '''Test if base36encoding works'''
     self.assertEqual(base36encode(-666), '-ii')
Example #5
0
 def test_base36encode_ok(self):
     '''Test if base36encoding works'''
     self.assertEqual(base36encode(666), 'ii')
Example #6
0
 def test_base36encode_not_number(self):
     with self.assertRaises(TypeError):
         base36encode('a')
Example #7
0
 def test_base36encode_neg_len(self):
     '''Test if base36encoding works'''
     self.assertEqual(base36encode(2), '2')
Example #8
0
 def test_base36encode_neg(self):
     '''Test if base36encoding works'''
     self.assertEqual(base36encode(-666), '-ii')