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

Method test_good_values

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

Source from the content-addressed store, hash-verified

1245 return value
1246
1247 def test_good_values(self):
1248 if hasattr(self, "_good_values"):
1249 for value in self._good_values:
1250 self.assign(value)
1251 self.assertEqual(self.obj.value, self.coerce(value)) # type:ignore
1252
1253 def test_bad_values(self):
1254 if hasattr(self, "_bad_values"):

Callers 1

test_allow_noneMethod · 0.95

Calls 2

assignMethod · 0.95
coerceMethod · 0.95

Tested by

no test coverage detected