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

Class TestBytes

tests/test_traitlets.py:1570–1575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1568
1569
1570class TestBytes(TraitTestBase):
1571 obj = BytesTrait()
1572
1573 _default_value = b"string"
1574 _good_values = [b"10", b"-10", b"10L", b"-10L", b"10.1", b"-10.1", b"string"]
1575 _bad_values = [10, -10, 10.1, -10.1, 1j, [10], ["ten"], {"ten": 10}, (10,), None, "string"]
1576
1577
1578class UnicodeTrait(HasTraits):

Callers

nothing calls this directly

Calls 1

BytesTraitClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…