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

Class TestUnicode

tests/test_traitlets.py:1582–1590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1580
1581
1582class TestUnicode(TraitTestBase):
1583 obj = UnicodeTrait()
1584
1585 _default_value = "unicode"
1586 _good_values = ["10", "-10", "10L", "-10L", "10.1", "-10.1", "", "string", "€", b"bytestring"]
1587 _bad_values = [10, -10, 10.1, -10.1, 1j, [10], ["ten"], {"ten": 10}, (10,), None]
1588
1589 def coerce(self, v):
1590 return cast_unicode(v)
1591
1592
1593class ObjectNameTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

UnicodeTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…