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

Class TestObjectName

tests/test_traitlets.py:1597–1617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1595
1596
1597class TestObjectName(TraitTestBase):
1598 obj = ObjectNameTrait()
1599
1600 _default_value = "abc"
1601 _good_values = ["a", "gh", "g9", "g_", "_G", "a345_"]
1602 _bad_values = [
1603 1,
1604 "",
1605 "€",
1606 "9g",
1607 "!",
1608 "#abc",
1609 "aj@",
1610 "a.b",
1611 "a()",
1612 "a[0]",
1613 None,
1614 object(),
1615 object,
1616 ]
1617 _good_values.append("þ") # þ=1 is valid in Python 3 (PEP 3131).
1618
1619
1620class DottedObjectNameTrait(HasTraits):

Callers

nothing calls this directly

Calls 2

ObjectNameTraitClass · 0.85
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…