@@ -162,7 +162,7 @@ def test_trigger_batch_with_mixed_channels_success_case(self):
162162 )
163163
164164 # simulate the same encryption process and check equality
165- encryp_master_key = ensure_binary (encryp_master_key ,"encryp_master_key" )
165+ encryp_master_key = ensure_binary (encryp_master_key , "encryp_master_key" )
166166 chan_2 = ensure_binary (chan_2 ,"chan_2" )
167167 shared_secret = generate_shared_secret (chan_2 , encryp_master_key )
168168
@@ -180,7 +180,7 @@ def test_trigger_batch_with_mixed_channels_success_case(self):
180180 cipher_text_b64 = base64 .b64encode (cipher_text )
181181
182182 # format expected output
183- json_dumped_2 = json .dumps ({ "nonce" : nonce_b64 .decode ("utf-8" ), "ciphertext" : cipher_text_b64 .decode ("utf-8" ) } , ensure_ascii = False )
183+ json_dumped_2 = json .dumps ({ "nonce" : nonce_b64 .decode ("utf-8" ), "ciphertext" : cipher_text_b64 .decode ("utf-8" ) }, ensure_ascii = False )
184184
185185 expected_params = {
186186 u'batch' : [{
@@ -198,7 +198,6 @@ def test_trigger_batch_with_mixed_channels_success_case(self):
198198 self .assertEqual (request .params , expected_params )
199199
200200 def test_trigger_with_private_encrypted_channel_string_fail_case_no_encryption_master_key_specified (self ):
201-
202201 pc = PusherClient (app_id = u'4' , key = u'key' , secret = u'secret' , ssl = True )
203202
204203 with self .assertRaises (ValueError ):
@@ -222,7 +221,6 @@ def test_trigger_with_public_channel_with_encryption_master_key_specified_succes
222221 self .assertEqual (request .params , expected_params )
223222
224223 def test_trigger_with_private_encrypted_channel_success (self ):
225-
226224 # instantiate a new client configured with the master encryption key
227225 encryp_master_key = u'8tW5FQLniQ1sBQFwrw7t6TVEsJZd10yY'
228226 pc = PusherClient (app_id = u'4' , key = u'key' , secret = u'secret' , encryption_master_key = encryp_master_key , ssl = True )
0 commit comments