def setUpClass(cls): cls.ably = AblyRest(key=test_vars["keys"][0]["key_str"], rest_host=test_vars["host"], port=test_vars["port"], tls_port=test_vars["tls_port"], tls=test_vars["tls"]) cls.cipher_params = CipherParams(secret_key='keyfordecrypt_16', algorithm='aes')
def setUpClass(cls): cls.ably = RestSetup.get_ably_rest() cls.cipher_params = CipherParams(secret_key='keyfordecrypt_16', algorithm='aes')
async def setUp(self): self.ably = await RestSetup.get_ably_rest() self.cipher_params = CipherParams(secret_key='keyfordecrypt_16', algorithm='aes')
def setUpClass(cls): cls.ably = RestSetup.get_ably_rest(use_binary_protocol=False) cls.cipher_params = CipherParams(secret_key='keyfordecrypt_16', algorithm='aes')