@mock.patch.object(versionutils, 'report_deprecated_feature')
def test_exception_happens(self, mock_deprecator):
    routers.EndpointFilterExtension(mock.ANY)
    mock_deprecator.assert_called_once_with(mock.ANY, mock.ANY)
    (args, _kwargs) = mock_deprecator.call_args
    self.assertIn('Remove endpoint_filter_extension from', args[1])
@mock.patch.object(versionutils, 'report_deprecated_feature')
def test_exception_happens(self, mock_deprecator):
    routers.EndpointFilterExtension(mock.ANY)
    mock_deprecator.assert_called_once_with(mock.ANY, mock.ANY)
    (args, _kwargs) = mock_deprecator.call_args
    self.assertIn('Remove endpoint_filter_extension from', args[1])