def status(self): """Returns current state of Env that was fetched from DB.""" return db.env_get_status(self.uuid)
def test_env_get_status(self): env = db.env_create("name", "STATUS42", "descr", {}, {}, {}, []) self.assertEqual("STATUS42", db.env_get_status(env["uuid"]))