예제 #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)]