X-Git-Url: https://code.kerkeslager.com/?p=ton;a=blobdiff_plain;f=test_tags.py;h=a6afcaf2b471410868f2f57315c3819f2cd7d02f;hp=93c58e04adfac3a0a03776bed8e1e3e8f3c3131e;hb=HEAD;hpb=3e50bce4cd0433d8c91ca17cee94e25b62f28660 diff --git a/test_tags.py b/test_tags.py index 93c58e0..a6afcaf 100644 --- a/test_tags.py +++ b/test_tags.py @@ -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]),