def _test_filter(self, spec, expected): backend = PlainFilterBackend(DATA) backend.bind([spec]) assert backend.filter() == expected
def _test_filter(self, spec, expected): backend = PlainFilterBackend(DATA) backend.bind([spec]) assert backend.filter() == expected
def test_filter_no_specs(self): qs = ["hello"] backend = PlainFilterBackend(qs) backend.bind([]) assert backend.filter() is qs
def test_filter_no_specs(self): qs = ['hello'] backend = PlainFilterBackend(qs) backend.bind([]) assert backend.filter() is qs