@@ -1262,15 +1262,23 @@ def test_load_kube_config_from_file_like_object(self):
12621262 expected = FakeConfig (host = TEST_HOST ,
12631263 token = BEARER_TOKEN_FORMAT % TEST_DATA_BASE64 )
12641264 config_file_like_object = io .StringIO ()
1265- #py3 (won't have unicode) vs py2 (requires it)
1265+ # py3 (won't have unicode) vs py2 (requires it)
12661266 try :
12671267 unicode ('' )
1268- config_file_like_object .write (unicode (yaml .safe_dump (self .TEST_KUBE_CONFIG ), errors = 'replace' ))
1268+ config_file_like_object .write (
1269+ unicode (
1270+ yaml .safe_dump (
1271+ self .TEST_KUBE_CONFIG ),
1272+ errors = 'replace' ))
12691273 except NameError :
1270- config_file_like_object .write (yaml .safe_dump (self .TEST_KUBE_CONFIG ))
1274+ config_file_like_object .write (
1275+ yaml .safe_dump (
1276+ self .TEST_KUBE_CONFIG ))
12711277 actual = FakeConfig ()
1272- load_kube_config (config_file = config_file_like_object , context = "simple_token" ,
1273- client_configuration = actual )
1278+ load_kube_config (
1279+ config_file = config_file_like_object ,
1280+ context = "simple_token" ,
1281+ client_configuration = actual )
12741282 self .assertEqual (expected , actual )
12751283
12761284 def test_load_kube_config_from_dict (self ):
@@ -1675,7 +1683,6 @@ def test_new_client_from_config(self):
16751683 self .assertEqual (BEARER_TOKEN_FORMAT % TEST_DATA_BASE64 ,
16761684 client .configuration .api_key ['authorization' ])
16771685
1678-
16791686 def test_save_changes (self ):
16801687 kubeconfigs = self ._create_multi_config ()
16811688
0 commit comments