def test_list_of_identifiers(self): test_string = '''first second third''' result = List.parseString(test_string) self.assertEqual(result[1], "second")
def test_list_of_dates(self): test_string = '''1454.1.1 2020.1.5 1550.3.4''' result = List.parseString(test_string) self.assertEqual(result[1], "2020.1.5")
def test_list_of_numbers(self): test_string = '''1 2 0 0 0 0 0 1 0 1 0 0''' result = List.parseString(test_string) self.assertEqual(result[1], "2")