projects
/
ton
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented dictionary parsing
[ton]
/
test_don.py
diff --git
a/test_don.py
b/test_don.py
index
fe46bbc
..
c4e9549
100644
(file)
--- a/
test_don.py
+++ b/
test_don.py
@@
-244,4
+244,13
@@
class TestStringDeserialize(unittest.TestCase):
string.deserialize("[1i8,2i8,3i8,4i8,5i8]"),
)
string.deserialize("[1i8,2i8,3i8,4i8,5i8]"),
)
+ def test_deserializes_dictionary(self):
+ self.assertEqual(
+ collections.OrderedDict([
+ ('foo', 1),
+ ('bar', 'baz'),
+ ]),
+ string.deserialize('{"foo"utf8:1i32,"bar"utf8:"baz"utf8}'),
+ )
+
unittest.main()
unittest.main()