def test_args(self): self.assertEqual(str(F(apple="fruit")), str(filterbuilder(F(apple="fruit"))))
def test_or(self): self.assertEqual("|(orange=color)(orange=fruit)", str(F(orange="color") | F(orange="fruit")))
def test_from_string(self): self.assertEqual("|(orange=color)(orange=fruit)", str(F.from_string("|(orange=color)(orange=fruit)")))
def test_and(self): self.assertEqual("&(orange=color)(orange=fruit)", str(F(orange="color") & F(orange="fruit")))
def test_not_equal(self): self.assertEqual("!(orange=color)", str(~F(orange="color")))
def test_equal(self): self.assertEqual("orange=color", str(F(orange="color")))
def test_args_and_kwargs(self): self.assertEqual(str(F(apple="fruit") & F(earth="round")), str(filterbuilder(F(apple="fruit"), earth="round")))
def test_multiple_args(self): self.assertEqual(str(F(apple="fruit") & F(apple="round")), str(filterbuilder(F(apple="fruit"), F(apple="round"))))