def METHOD_NAME(self, request, mock):
    # Ensure mock runs when middleware is called
    mock.reset_mock()
    response = self.middleware(request)
    assert mock.called
    # Ensure noop response
    assert response == self.get_response()