diff options
author | Omer Katz <omer.drow@gmail.com> | 2019-02-28 18:35:37 +0200 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2019-02-28 18:35:37 +0200 |
commit | 228159d67abd56234ae70f2c39741979d85ea3bd (patch) | |
tree | 12d31d79999b3b2430ec613a41f6377f1e637124 | |
parent | ed759687c069b12c914d8ebdab26ef34d068fca9 (diff) | |
download | py-amqp-228159d67abd56234ae70f2c39741979d85ea3bd.tar.gz |
Test array inside table.
-rw-r--r-- | t/unit/test_serialization.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/unit/test_serialization.py b/t/unit/test_serialization.py index 3891090..88838a8 100644 --- a/t/unit/test_serialization.py +++ b/t/unit/test_serialization.py @@ -77,7 +77,14 @@ class test_serialization: 3231) def test_table(self): - table = {'foo': 32, 'bar': 'baz', 'nil': None} + table = { + 'foo': 32, + 'bar': 'baz', + 'nil': None, + 'array': [ + 1, True, 'bar' + ] + } assert loads(b'F', dumps(b'F', [table]))[0][0] == table def test_array(self): |