From 9530ce40bbc0f0079c3413146ca8183f19c1f45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20P=C3=A1sztor?= Date: Mon, 4 May 2015 22:46:23 +0100 Subject: [PATCH] increasing test coverage --- tests/test_config_classes.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)