def test_musts_must_nots(self): self.assertEqual( loader.parse_filter_by_tags(['foo,bar,baz', '-FOO,-BAR,-BAZ']), [(set(['foo', 'bar', 'baz']), set([])), (set([]), set(['FOO', 'BAR', 'BAZ']))])
def test_musts_must_nots(self): self.assertEqual(loader.parse_filter_by_tags(['foo,bar,baz', '-FOO,-BAR,-BAZ']), [(set(['foo', 'bar', 'baz']), set([])), (set([]), set(['FOO', 'BAR', 'BAZ']))])
def test_must_must_not(self): self.assertEqual(loader.parse_filter_by_tags(['foo,-bar,baz']), [(set(['foo', 'baz']), set(['bar']))])
def test_must_must_not(self): self.assertEqual(loader.parse_filter_by_tags(['foo,-bar,baz']), [(set(['foo', 'baz']), set(['bar']))])