def test_lookup(self):
        assert event.Priority.lookup(event.Priority.CORE) is event.Priority.CORE
        assert event.Priority.lookup(event.Priority.CORE.value) is event.Priority.CORE
        assert event.Priority.lookup(-12312412) == -12312412
def check_prereq(self, prereqMode = 0):
        self._exit_modes_beyond(prereqMode)
        if len(self.modeList) <= prereqMode:
            raise Exception("Attempted to enter menu when prerequist mode was not entered, expected: %d" % prereqMode)