trying to fix pycodestyle problems
@@ -1265,11 +1265,19 @@ class TestKubeConfigLoader(BaseTestCase):
# py3 (won't have unicode) vs py2 (requires it)
try:
unicode('')
- config_file_like_object.write(unicode(yaml.safe_dump(self.TEST_KUBE_CONFIG), errors='replace'))
+ config_file_like_object.write(
+ unicode(
+ yaml.safe_dump(
+ self.TEST_KUBE_CONFIG),
+ errors='replace'))
except NameError:
- config_file_like_object.write(yaml.safe_dump(self.TEST_KUBE_CONFIG))
+ config_file_like_object.write(
+ yaml.safe_dump(
+ self.TEST_KUBE_CONFIG))
actual = FakeConfig()
- load_kube_config(config_file=config_file_like_object, context="simple_token",
+ load_kube_config(
+ config_file=config_file_like_object,
+ context="simple_token",
client_configuration=actual)
self.assertEqual(expected, actual)
@@ -1675,7 +1683,6 @@ class TestKubeConfigMerger(BaseTestCase):
self.assertEqual(BEARER_TOKEN_FORMAT % TEST_DATA_BASE64,
client.configuration.api_key['authorization'])
-
def test_save_changes(self):
kubeconfigs = self._create_multi_config()
