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

Class A

tests/test_traitlets.py:815–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813class TestHasTraits(TestCase):
814 def test_trait_names(self):
815 class A(HasTraits):
816 i = Int()
817 f = Float()
818
819 a = A()
820 self.assertEqual(sorted(a.trait_names()), ["f", "i"])

Callers

nothing calls this directly

Calls 3

IntClass · 0.90
FloatClass · 0.90
tagMethod · 0.80

Tested by

no test coverage detected