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

Method test_unique_default_value

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

Source from the content-addressed store, hash-verified

1113 self.assertRaises(TraitError, setattr, a, "inst", Bah())
1114
1115 def test_unique_default_value(self):
1116 class Foo:
1117 pass
1118
1119 class A(HasTraits):
1120 inst = Instance(Foo, (), {})
1121
1122 a = A()
1123 b = A()
1124 self.assertTrue(a.inst is not b.inst)
1125
1126 def test_args_kw(self):
1127 class Foo:

Callers

nothing calls this directly

Calls 1

AClass · 0.70

Tested by

no test coverage detected