K8sObject: unit tests pass
import uuid
from kubernetes import K8sObject, K8sConfig
-from kubernetes.K8sExceptions import UnprocessableEntityException, NotFoundException, InvalidObjectException
+from kubernetes.K8sExceptions import (
+ UnprocessableEntityException, NotFoundException,
+ InvalidObjectException
+)
from tests import _utils
from tests.BaseTest import BaseTest
@@ -29,6 +32,8 @@ class K8sObjectTest(BaseTest):
self.fail("Should not fail.")
except SyntaxError:
pass
+ except InvalidObjectException:
+ pass
except IOError:
pass
except Exception as err:
