| 2065 | Counter.__setitem__(self, key, value) |
| 2066 | |
| 2067 | class CounterSubclassWithGet(Counter): |
| 2068 | # Test a counter subclass that overrides get() |
| 2069 | def __init__(self, *args, **kwds): |
| 2070 | self.called = False |
| 2071 | Counter.__init__(self, *args, **kwds) |
| 2072 | def get(self, key, default): |
| 2073 | self.called = True |
| 2074 | return Counter.get(self, key, default) |
| 2075 | |
| 2076 | class TestCounter(unittest.TestCase): |
| 2077 |
no outgoing calls
searching dependent graphs…