Esempio n. 1
0
 def test_too_long_string_raise_exception(self):
     # The XDATA limit for group code 1000 is 255 characters
     xlist = XDataUserList()
     xlist.append("0123456789" * 26)
     with pytest.raises(DXFValueError):
         xlist.commit()
Esempio n. 2
0
 def test_invalid_line_break_characters_raise_exception(self, char):
     xlist = XDataUserList()
     xlist.append(char)
     with pytest.raises(DXFValueError):
         xlist.commit()