Beispiel #1
0
    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
Beispiel #3
0
    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