示例#1
0
 def test_str(self):
     self.assertEqual(ustr, tag_type(0))
示例#2
0
 def test_value_error(self):
     with self.assertRaises(ValueError):
         tag_type(3000)
示例#3
0
 def test_int(self):
     self.assertEqual(int, tag_type(60))
示例#4
0
 def test_float(self):
     self.assertEqual(point_tuple, tag_type(10))
示例#5
0
 def test_value_error(self):
     with self.assertRaises(ValueError):
         tag_type(3000)
示例#6
0
 def test_str(self):
     self.assertEqual(ustr, tag_type(0))
示例#7
0
 def test_float(self):
     self.assertEqual(point_tuple, tag_type(10))
示例#8
0
 def test_int(self):
     self.assertEqual(int, tag_type(60))
示例#9
0
文件: dxf2html.py 项目: aka863/ezdxf
def tag_type_str(code):
    if 309 < code < 320:
        return '<bin>'
    else:
        return TAG_TYPES[tag_type(code)]