Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
increasing test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pasztorpisti committed May 4, 2015
1 parent 1511013 commit 9530ce4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_config_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9530ce4

Please sign in to comment.