MCPcopy Index your code
hub / github.com/RustPython/RustPython / Point

Class Point

Lib/test/test_collections.py:669–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667
668 def test_namedtuple_subclass_issue_24931(self):
669 class Point(namedtuple('_Point', ['x', 'y'])):
670 pass
671
672 a = Point(3, 4)
673 self.assertEqual(a._asdict(), OrderedDict([('x', 3), ('y', 4)]))

Callers 6

test_defaultsMethod · 0.70
test_readonlyMethod · 0.70
test_instanceMethod · 0.70
test_tuplenessMethod · 0.70
test_field_descriptorMethod · 0.70

Calls 1

namedtupleFunction · 0.90

Tested by 6

test_defaultsMethod · 0.56
test_readonlyMethod · 0.56
test_instanceMethod · 0.56
test_tuplenessMethod · 0.56
test_field_descriptorMethod · 0.56