Adding some very minor documentation
[ton] / test_tags.py
index 93c58e0..a6afcaf 100644 (file)
@@ -1,7 +1,7 @@
 import collections
 import unittest
 
-from don import tags
+from ton import tags
 
 class AutoTagTests(unittest.TestCase):
     def test_autotags_void(self):
@@ -193,6 +193,12 @@ class AutoTagTests(unittest.TestCase):
             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]),