import collections
import unittest
-from don import tags
+from ton import tags
class AutoTagTests(unittest.TestCase):
def test_autotags_void(self):
tags.TaggedObject(tag = tags.UTF32, value = 'Hello, world'),
)
+ def test_tags_bytes(self):
+ self.assertEqual(
+ tags.autotag(b'\xde\xad\xbe\xef'),
+ tags.TaggedObject(tag = tags.BINARY, value = b'\xde\xad\xbe\xef'),
+ )
+
def test_tags_list(self):
self.assertEqual(
tags.autotag([1,2,3]),