Skip to content

Commit 8a4c199

Browse files
committed
add test for new exception construction behavior
1 parent 23b1462 commit 8a4c199

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

kazoo/tests/test_exceptions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ def test_exceptions_code(self):
2020
def test_invalid_code(self):
2121
module = self._get()
2222
self.assertRaises(RuntimeError, module.EXCEPTIONS.__getitem__, 666)
23+
24+
def test_exceptions_construction(self):
25+
module = self._get()
26+
exc = module.EXCEPTIONS[-101]()
27+
assert type(exc) is module.NoNodeError
28+
assert exc.args == ()

0 commit comments

Comments
 (0)