Exemplo n.º 1
0
 def test_str(self):
     self.assertEqual(ustr, tag_type(0))
Exemplo n.º 2
0
 def test_value_error(self):
     with self.assertRaises(ValueError):
         tag_type(3000)
Exemplo n.º 3
0
 def test_int(self):
     self.assertEqual(int, tag_type(60))
Exemplo n.º 4
0
 def test_float(self):
     self.assertEqual(point_tuple, tag_type(10))
Exemplo n.º 5
0
 def test_value_error(self):
     with self.assertRaises(ValueError):
         tag_type(3000)
Exemplo n.º 6
0
 def test_str(self):
     self.assertEqual(ustr, tag_type(0))
Exemplo n.º 7
0
 def test_float(self):
     self.assertEqual(point_tuple, tag_type(10))
Exemplo n.º 8
0
 def test_int(self):
     self.assertEqual(int, tag_type(60))
Exemplo n.º 9
0
def tag_type_str(code):
    if 309 < code < 320:
        return '<bin>'
    else:
        return TAG_TYPES[tag_type(code)]