MCPcopy Index your code
hub / github.com/python/cpython / test_patma_197

Method test_patma_197

Lib/test/test_patma.py:2052–2063  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2050 self.assertEqual(y, 0)
2051
2052 def test_patma_197(self):
2053 w = [Point(-1, 0), Point(1, 2)]
2054 match w:
2055 case (Point(x1, y1), Point(x2, y2) as p2):
2056 z = 0
2057 self.assertEqual(w, [Point(-1, 0), Point(1, 2)])
2058 self.assertIs(x1, w[0].x)
2059 self.assertIs(y1, w[0].y)
2060 self.assertIs(p2, w[1])
2061 self.assertIs(x2, w[1].x)
2062 self.assertIs(y2, w[1].y)
2063 self.assertIs(z, 0)
2064
2065 def test_patma_198(self):
2066 class Color(enum.Enum):

Callers

nothing calls this directly

Calls 3

PointClass · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected