def test_adapter_use_chaining(self): adapter = SimpleAdapter() adapter.use(CallCountingMiddleware()).use(CallCountingMiddleware())
def test_adapter_single_use(self): adapter = SimpleAdapter() adapter.use(CallCountingMiddleware())