MCPcopy Create free account
hub / github.com/python/cpython / test_patma_178

Method test_patma_178

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

Source from the content-addressed store, hash-verified

1844 self.assertEqual(whereis(42), "Not a point")
1845
1846 def test_patma_178(self):
1847 def whereis(point):
1848 match point:
1849 case Point(1, var):
1850 return var
1851 self.assertEqual(whereis(Point(1, 0)), 0)
1852 self.assertIs(whereis(Point(0, 0)), None)
1853
1854 def test_patma_179(self):
1855 def whereis(point):

Callers

nothing calls this directly

Calls 3

PointClass · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected