def unicode_test(seg_instance, seg_str):
            seg_gen_str = str(seg_instance)

            self.assertEqual(len(seg_gen_str), 240)
            self.assertEqual(len(seg_str), 240)
            self.assertEqual(seg_gen_str, seg_str)
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)