Example #1
0
 def checkNominal(self, statement, expected_dump=None):
     exp = QgsSQLStatement(statement)
     self.assertEqual(exp.hasParserError(), False)
     self.assertEqual(exp.parserErrorString(), "")
     if expected_dump is None:
         expected_dump = statement
     self.assertEqual(exp.dump(), expected_dump)
     self.assertEqual(exp.dump(), exp.rootNode().clone().dump())
Example #2
0
 def checkNominal(self, statement, expected_dump=None):
     exp = QgsSQLStatement(statement)
     self.assertEqual(exp.hasParserError(), False)
     self.assertEqual(exp.parserErrorString(), "")
     if expected_dump is None:
         expected_dump = statement
     self.assertEqual(exp.dump(), expected_dump)
     self.assertEqual(exp.dump(), exp.rootNode().clone().dump())
Example #3
0
 def checkError(self, statement):
     exp = QgsSQLStatement(statement)
     self.assertEqual(exp.hasParserError(), True)
     self.assertNotEqual(exp.parserErrorString(), '')
     self.assertEqual(exp.dump(), "(no root)")
     self.assertEqual(exp.rootNode(), None)
Example #4
0
 def checkError(self, statement):
     exp = QgsSQLStatement(statement)
     self.assertEqual(exp.hasParserError(), True)
     self.assertNotEqual(exp.parserErrorString(), '')
     self.assertEqual(exp.dump(), "(no root)")
     self.assertEqual(exp.rootNode(), None)