示例#1
0
 def setUp(self):
     tags = Tags.fromtext(DXF13LAYERS)
     self.layers = LayerTable(tags, DrawingProxy("AC1024"))
示例#2
0
 def test_init_with_tags(self):
     tags = Tags.fromtext(XTAGS1)
     xtags = ClassifiedTags(tags)
     self.assertEqual(3, len(xtags.subclasses))
     self.assertEqual(1, len(xtags.xdata))
示例#3
0
 def setUp(self):
     tags = Tags.fromtext(POLYLINE_DXF13)
     self.entities = EntitySection(tags, DrawingProxy('AC1024'))
示例#4
0
 def setUp(self):
     tags = Tags.fromtext(POLYFACE_DXF12)
     self.entities = EntitySection(tags, DrawingProxy('AC1009'))
示例#5
0
 def test_gethandle_105(self):
     tags = Tags.fromtext(TESTHANDLE105)
     self.assertEqual('F105', tags.gethandle())
示例#6
0
 def test_tagindex(self):
     tags = Tags.fromtext(TESTFINDALL)
     index = tags.tagindex(0)
     self.assertEqual(0, index)
     index = tags.tagindex(0, index + 1)
     self.assertEqual(1, index)
示例#7
0
 def setUp(self):
     self.tags = Tags.fromtext(TEST_TAGREADER)
示例#8
0
 def setUp(self):
     tags = Tags.fromtext(TESTHEADER)
     self.header = HeaderSection(tags)
示例#9
0
 def setUp(self):
     tags = Tags.fromtext(BLOCKS_WITH_ATTRIB_DXF13)
     self.blocks = BlocksSection(tags, DrawingProxy('AC1024'))
示例#10
0
 def setUp(self):
     tags = Tags.fromtext(POLYLINE_DXF13)
     self.entities = EntitySection(tags, DrawingProxy('AC1024'))
示例#11
0
 def setUp(self):
     tags = Tags.fromtext(BLOCKS_DXF12)
     self.blocks = BlocksSection(tags, DrawingProxy('AC1009'))
示例#12
0
 def setUp(self):
     tags = Tags.fromtext(BLOCKS_WITH_ATTRIB_DXF13)
     self.blocks = BlocksSection(tags, DrawingProxy('AC1024'))
示例#13
0
 def setUp(self):
     tags = Tags.fromtext(BLOCKS_DXF12)
     self.blocks = BlocksSection(tags, DrawingProxy('AC1009'))
示例#14
0
 def setUp(self):
     tags = Tags.fromtext(POLYFACE_DXF12)
     self.entities = EntitySection(tags, DrawingProxy('AC1009'))
示例#15
0
 def test_gethandle_105(self):
     tags = Tags.fromtext(TESTHANDLE105)
     self.assertEqual('F105', tags.gethandle())
示例#16
0
 def setUp(self):
     tags = Tags.fromtext(TESTHEADER)
     self.header = HeaderSection(tags)
示例#17
0
 def test_findall(self):
     tags = Tags.fromtext(TESTFINDALL)
     self.assertEqual(3, len(tags.findall(0)))
示例#18
0
 def setUp(self):
     self.tags = Tags.fromtext(TEST_TAGREADER)
示例#19
0
 def test_tagindex(self):
     tags = Tags.fromtext(TESTFINDALL)
     index = tags.tagindex(0)
     self.assertEqual(0, index)
     index = tags.tagindex(0, index+1)
     self.assertEqual(1, index)
示例#20
0
 def test_findall(self):
     tags = Tags.fromtext(TESTFINDALL)
     self.assertEqual(3, len(tags.findall(0)))
示例#21
0
 def test_findfirst_value_error(self):
     tags = Tags.fromtext(TESTFINDALL)
     with self.assertRaises(ValueError):
         tags.tagindex(1)
示例#22
0
 def test_findfirst_value_error(self):
     tags = Tags.fromtext(TESTFINDALL)
     with self.assertRaises(ValueError):
         tags.tagindex(1)
示例#23
0
 def setUp(self):
     tags = Tags.fromtext(DXF13LAYERS)
     self.layers = LayerTable(tags, DrawingProxy("AC1024"))