diff options
author | James R. Barlow <jim@purplerock.ca> | 2019-07-08 02:24:41 -0700 |
---|---|---|
committer | James R. Barlow <jim@purplerock.ca> | 2019-07-08 02:24:41 -0700 |
commit | 268c81de02d4ca8d087a39a517599d74aa46e5c5 (patch) | |
tree | 7ff6424bd4bd5c7bd8dbc1c592558c830ef22fcd /tests | |
parent | 3b6578d8e4423cbf4a0d49e5abe5bc27cfa8a409 (diff) |
Add Object.wrap_in_array()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_object.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_object.py b/tests/test_object.py index 1f6d3fb..8fc5db0 100644 --- a/tests/test_object.py +++ b/tests/test_object.py @@ -176,6 +176,11 @@ def test_len_array(): assert len(Array([3])) == 1 +def test_wrap_array(): + assert Name('/Foo').wrap_in_array() == Array([Name('/Foo')]) + assert Array([42]).wrap_in_array() == Array([42]) + + def test_name_equality(): # Who needs transitivity? :P # While this is less than ideal ('/Foo' != b'/Foo') it allows for slightly |