diff options
author | James R. Barlow <james@purplerock.ca> | 2021-03-20 21:29:05 -0700 |
---|---|---|
committer | James R. Barlow <james@purplerock.ca> | 2021-03-20 21:29:05 -0700 |
commit | 2b7efe6dcb705ba1feb288e4100a4497b98e92ae (patch) | |
tree | 0cb014a8e9bd1987575be946aee666fa0ff9154c | |
parent | d09dc8030bcf2617b55cfab54dcb945445d81916 (diff) |
tests: exercise more of ObjectMapping
-rw-r--r-- | tests/test_object.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_object.py b/tests/test_object.py index 1337e82..bb9cf49 100644 --- a/tests/test_object.py +++ b/tests/test_object.py @@ -669,3 +669,10 @@ def test_array_of_array(): a2 = Array(a) assert a == a2 assert a is not a2 + + +def test_object_mapping(sandwich): + object_mapping = sandwich.pages[0].images + assert '42' not in object_mapping + assert '/R12' in object_mapping + assert '/R12' in object_mapping.keys() |