def test_easy_search_filters():
    session = Session.login()
    query_test_pairs = [# ('bodytype', maps.bodytype),
                        # TODO(@IvanMalison) this is an alist feature,
                        # so it can't be tested for now.
                        ('drugs', maps.drugs), ('smokes', maps.smokes),
                        ('diet', maps.diet,), ('job', maps.job)]
    for query_param, re_map in query_test_pairs:
        for value in sorted(re_map.pattern_to_value.keys()):
            profile = SearchFetchable(**{
                'gentation': '',
                'session': session,
                'count': 1,
                query_param: value
            })[0]
            attribute = getattr(profile.details, query_param)
            assert value in (attribute or '').lower()