def setup(): setup = Setup() unb_segment = "UNB+UNOA:4+APIS*ABE+USADHS+070429:0900+000000001++USADHS'" cc = Characters() setup.cc = cc.with_control_character("decimal_point", ".") setup.collection = SegmentCollection.from_str(unb_segment) return setup
def test_malformed_tag1(): with pytest.raises(EDISyntaxError): SegmentCollection.from_str("IMD+F++:::This is 'a :malformed string'")