def test_true(self): matcher = self._Matcher(True) matcher = search._NotMetaMatcher(matcher) assert not matcher.match('foo')
def test_false(self): matcher = self._Matcher(False) matcher = search._NotMetaMatcher(matcher) self.assertTrue(matcher.match('foo'))