| 1735 | |
| 1736 | |
| 1737 | class TestLenList(TraitTestBase): |
| 1738 | obj = LenListTrait() |
| 1739 | |
| 1740 | _default_value = [0] |
| 1741 | _good_values = [[1], [1, 2], (1, 2)] |
| 1742 | _bad_values = [10, [1, "a"], "a", [], list(range(3))] |
| 1743 | |
| 1744 | def coerce(self, value): |
| 1745 | if value is not None: |
| 1746 | value = list(value) |
| 1747 | return value |
| 1748 | |
| 1749 | |
| 1750 | class TupleTrait(HasTraits): |
nothing calls this directly
no test coverage detected
searching dependent graphs…