| 22 | |
| 23 | |
| 24 | class _TestClass: |
| 25 | def __init__(self): |
| 26 | self.call_count = 0 |
| 27 | |
| 28 | @cache_util.prevented_multiple_calls |
| 29 | async def decorated_method(self, *args, **kwargs): |
| 30 | self.call_count += 1 |
| 31 | return self.call_count |
| 32 | |
| 33 | |
| 34 | async def test_prevented_multiple_calls_without_max_period(): |
no outgoing calls