@@ -1262,15 +1262,23 @@ def test_load_kube_config_from_file_like_object(self):
1262
1262
expected = FakeConfig (host = TEST_HOST ,
1263
1263
token = BEARER_TOKEN_FORMAT % TEST_DATA_BASE64 )
1264
1264
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)
1266
1266
try :
1267
1267
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' ))
1269
1273
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 ))
1271
1277
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 )
1274
1282
self .assertEqual (expected , actual )
1275
1283
1276
1284
def test_load_kube_config_from_dict (self ):
@@ -1675,7 +1683,6 @@ def test_new_client_from_config(self):
1675
1683
self .assertEqual (BEARER_TOKEN_FORMAT % TEST_DATA_BASE64 ,
1676
1684
client .configuration .api_key ['authorization' ])
1677
1685
1678
-
1679
1686
def test_save_changes (self ):
1680
1687
kubeconfigs = self ._create_multi_config ()
1681
1688
0 commit comments