def METHOD_NAME(self):
    mock_filter_cls = MagicMock()
    mock_filter_cls.BOOLEAN_FILTERS = {'foo': 'mock foo spec', 'bar': 'mock bar spec'}
    mock_filter_cls.COMPARATIVE_FILTERS = {'baz': 'mock baz spec'}
    self.assertEqual(candidates._utils.get_filter_spec(mock_filter_cls, 'foo'), 'mock foo spec')
    self.assertEqual(candidates._utils.get_filter_spec(mock_filter_cls, 'bar'), 'mock bar spec')
    self.assertEqual(candidates._utils.get_filter_spec(mock_filter_cls, 'baz'), 'mock baz spec')