We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23b1462 commit 8a4c199Copy full SHA for 8a4c199
1 file changed
kazoo/tests/test_exceptions.py
@@ -20,3 +20,9 @@ def test_exceptions_code(self):
20
def test_invalid_code(self):
21
module = self._get()
22
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