def test_generate_totp_secret_length(self):
        for length in [5, 10, 20, 30, 40, 50]:
            secret = auth.generate_totp_secret(length)
            self.assertEqual(type(secret), six.text_type)
            self.assertEqual(len(secret), length * 8 / 5)
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/test/test_auth.py/TestWampAuthHelpers.test_generate_totp_secret_length/original