@pytest.mark.parametrize('dataset, expected', [(('label', 'name', 'description'), ('label', 'name', 'description')), (('label', None, 'description'), ('label', 'label', 'description')), (('label', None, None), ('label', 'label', None))])
def test_es_field_filters(dataset, expected):
    ffilter = ESFieldFilter(dataset[0], name=dataset[1], description=dataset[2])
    assert (expected == (ffilter.label, ffilter.name, ffilter.description))
@pytest.mark.parametrize('dataset, expected', [(('label', 'name', 'description'), ('label', 'name', 'description')), (('label', None, 'description'), ('label', 'label', 'description')), (('label', None, None), ('label', 'label', None))])
def test_es_field_filters(dataset, expected):
    ffilter = ESFieldFilter(dataset[0], name=dataset[1], description=dataset[2])
    assert (expected == (ffilter.label, ffilter.name, ffilter.description))