def have_keys(self, keys): for f in force_list(keys): if f in self.keys: return True return False
def have_flags(self, flags): for f in force_list(flags): if f in self.flags: return True return False