summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-11-18 11:11:58 -0500
committerGitHub <noreply@github.com>2020-11-18 11:11:58 -0500
commit96d21dfbee308cd8fe00809184f78da9231ece4a (patch)
tree5a98262f0397c023972f66ebd6df51c3de64ab57
parentcd752df6154c403e6dccaf5e797c1d4f8396f756 (diff)
downloadvyos-cloud-init-96d21dfbee308cd8fe00809184f78da9231ece4a.tar.gz
vyos-cloud-init-96d21dfbee308cd8fe00809184f78da9231ece4a.zip
test_persistence: simplify VersionIsPoppedFromState (#674)
-rw-r--r--cloudinit/tests/test_persistence.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/tests/test_persistence.py b/cloudinit/tests/test_persistence.py
index 3e5eaa8d..ec1152a9 100644
--- a/cloudinit/tests/test_persistence.py
+++ b/cloudinit/tests/test_persistence.py
@@ -105,8 +105,7 @@ class VersionIsPoppedFromState(CloudInitPickleMixin, metaclass=_Collector):
def _unpickle(self, ci_pkl_version: int) -> None:
# `self._ci_pkl_version` returns the type's _ci_pkl_version if it isn't
# in instance state, so we need to explicitly check self.__dict__.
- sentinel = mock.sentinel.default
- assert self.__dict__.get("_ci_pkl_version", sentinel) == sentinel
+ assert "_ci_pkl_version" not in self.__dict__
class TestPickleMixin: