mgr/pybind: stricter object test

avoid false successful tests from typos

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
This commit is contained in:
Noah Watkins 2018-07-12 09:18:43 -07:00
parent b5487abb8b
commit dc8577432f

View 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: