def test_str(self): self.assertEqual(ustr, tag_type(0))
def test_value_error(self): with self.assertRaises(ValueError): tag_type(3000)
def test_int(self): self.assertEqual(int, tag_type(60))
def test_float(self): self.assertEqual(point_tuple, tag_type(10))
def tag_type_str(code): if 309 < code < 320: return '<bin>' else: return TAG_TYPES[tag_type(code)]