MCPcopy Create free account
hub / github.com/ipython/traitlets / test_invalid_args

Method test_invalid_args

tests/test_traitlets.py:1766–1769  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1764 return value
1765
1766 def test_invalid_args(self):
1767 self.assertRaises(TypeError, Tuple, 5)
1768 self.assertRaises(TypeError, Tuple, default_value="hello")
1769 t = Tuple(Int(), CBytes(), default_value=(1, 5))
1770
1771
1772class LooseTupleTrait(HasTraits):

Callers

nothing calls this directly

Calls 3

TupleClass · 0.90
IntClass · 0.90
CBytesClass · 0.90

Tested by

no test coverage detected