Exemplo n.º 1
0
    def _test_filter(self, spec, expected):
        backend = PlainFilterBackend(DATA)
        backend.bind([spec])

        assert backend.filter() == expected
Exemplo n.º 2
0
    def _test_filter(self, spec, expected):
        backend = PlainFilterBackend(DATA)
        backend.bind([spec])

        assert backend.filter() == expected
Exemplo n.º 3
0
    def test_filter_no_specs(self):
        qs = ["hello"]
        backend = PlainFilterBackend(qs)
        backend.bind([])

        assert backend.filter() is qs
Exemplo n.º 4
0
    def test_filter_no_specs(self):
        qs = ['hello']
        backend = PlainFilterBackend(qs)
        backend.bind([])

        assert backend.filter() is qs