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

Method test_invalid_args

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

Source from the content-addressed store, hash-verified

1786 return value
1787
1788 def test_invalid_args(self):
1789 self.assertRaises(TypeError, Tuple, 5)
1790 self.assertRaises(TypeError, Tuple, default_value="hello")
1791 t = Tuple(Int(), CBytes(), default_value=(1, 5))
1792
1793
1794class MultiTupleTrait(HasTraits):

Callers

nothing calls this directly

Calls 3

TupleClass · 0.90
IntClass · 0.90
CBytesClass · 0.90

Tested by

no test coverage detected