def test_generate_random_code(self): ret = Common.generate_random_code(100) self.assertEqual(100, ret.__len__())