def test_binary_expression(self): text = "Status = 'new'" qset = FilterQueryInterpreter(FilterParser(Lexer(text))).interpret() self.assertIsInstance(qset, Q) self.assertEqual(qset.resolve(), "(Status = 'new')")