예제 #1
0
def test_matches_list_types(noop_scenario, dummy_object, query, should_match):
    dummy_object.list_attr = ["abc", "def"]
    criterion = {
        "name": "list_attr",
        "value": query,
    }
    assert should_match == noop_scenario.match_property(dummy_object, criterion)
예제 #2
0
def test_empty_property_criteria_dont_match(noop_scenario):
    assert noop_scenario.match_property(None, None) is False