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

Method test_patma_248

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

Source from the content-addressed store, hash-verified

2659 self.assertEqual(f((False, range(10, 20), True)), alts[4])
2660
2661 def test_patma_248(self):
2662 class C(dict):
2663 @staticmethod
2664 def get(key, default=None):
2665 return 'bar'
2666
2667 x = C({'foo': 'bar'})
2668 match x:
2669 case {'foo': bar}:
2670 y = bar
2671
2672 self.assertEqual(y, 'bar')
2673
2674 def test_patma_249(self):
2675 class C:

Callers

nothing calls this directly

Calls 2

CClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected