| 1580 | |
| 1581 | |
| 1582 | class 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 | |
| 1593 | class ObjectNameTrait(HasTraits): |
nothing calls this directly
no test coverage detected
searching dependent graphs…