(self)
| 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): |
nothing calls this directly
no test coverage detected