diff --git a/tests/test_config_classes.py b/tests/test_config_classes.py index c8d73bf..8d4e9ac 100644 --- a/tests/test_config_classes.py +++ b/tests/test_config_classes.py @@ -223,6 +223,12 @@ def test_getitem(self): config.array.__getitem__, None, ) + self.assertRaisesRegexp( + JSONConfigNodeTypeError, + r'You are trying to get an item from an array as if it was an object\.', + config.array.__getitem__, + 'item', + ) def test_getitem_with_negative_index(self): config = loads_config(TEST_JSON_STRING)