]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/pybind: stricter object test
authorNoah Watkins <nwatkins@redhat.com>
Thu, 12 Jul 2018 16:18:43 +0000 (09:18 -0700)
committerNoah Watkins <nwatkins@redhat.com>
Thu, 12 Jul 2018 16:28:09 +0000 (09:28 -0700)
avoid false successful tests from typos

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
src/pybind/mgr/selftest/module.py

index 0a08e3d87570a35a80af5add71b437ae65e09f59..73f1ad70d047ada1eaf201fcc4e560415718d897 100644 (file)
@@ -135,7 +135,9 @@ class Module(MgrModule):
                 "ec_profiles"
                 ]
         for obj in objects:
-            self.get(obj)
+            assert self.get(obj) is not None
+
+        assert self.get("__OBJ_DNE__") is None
 
         servers = self.list_servers()
         for server in servers: