def test_settings(self) -> None: val = 'student [note: "our future, help us God"]' res = enum_item.parseString(val, parseAll=True) self.assertEqual(res[0].name, 'student') self.assertEqual(res[0].note.text, 'our future, help us God')
def test_comment_both(self) -> None: val = '//comment before\nstudent [note: "our future, help us God"] //comment after' res = enum_item.parseString(val, parseAll=True) self.assertEqual(res[0].name, 'student') self.assertEqual(res[0].note.text, 'our future, help us God') self.assertEqual(res[0].comment, 'comment after')
def test_no_settings(self) -> None: val = 'student' res = enum_item.parseString(val, parseAll=True) self.assertEqual(res[0].name, 'student')