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

Method test_assign_enum_value

tests/test_traitlets_enum.py:48–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 color = UseEnum(Color, help="Color enum")
47
48 def test_assign_enum_value(self):
49 example = self.Example()
50 example.color = Color.green
51 self.assertEqual(example.color, Color.green)
52
53 def test_assign_all_enum_values(self):
54 # pylint: disable=no-member

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected