<s> """<STR_LIT>""" <EOL> from pyparsing import ParseException <EOL> import logging <EOL> from google . apputils import basetest as googletest <EOL> import query_parser as parser <EOL> class QueryParserTest ( googletest . TestCase ) : <EOL> def _RunMathQuery ( self , expression , stack ) : <EOL> test_stack = [ ] <EOL> parser . _MathParser ( test_stack ) . parseString ( expression ) <EOL> self . assertEqual ( stack , test_stack ) <EOL> def testNumber ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT> ] ) <EOL> def testDecimalExponentNumber ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT> ] ) <EOL> def testComplexNumbers ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT> ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT> ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:1> ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT> , - <NUM_LIT:1> , '<STR_LIT:*>' ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:1> ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT> ] ) <EOL> def testQuotedString ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' ] ) <EOL> def testLabel ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT:a>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT:a>' ] ) <EOL> def testComplexLabels ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' ] ) <EOL> def testUnary ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:1> , '<STR_LIT>' , - <NUM_LIT:1> , '<STR_LIT:*>' ] ) <EOL> def testBinary ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:1> , <NUM_LIT:2> , '<STR_LIT:+>' , <NUM_LIT:3> , '<STR_LIT:+>' ] ) <EOL> def testNoArgumentFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' ] ) <EOL> def testOneArgumentFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:0> , '<STR_LIT>' ] ) <EOL> def testMultipleArgumentFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , <NUM_LIT:2> , '<STR_LIT:right>' ] ) <EOL> def testSumFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testAverageFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , <NUM_LIT:2> , '<STR_LIT:*>' , <NUM_LIT:1> , '<STR_LIT:+>' , '<STR_LIT>' ] ) <EOL> def testTopFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testComplexTopFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , <NUM_LIT:10> , <NUM_LIT:1> , '<STR_LIT>' ] ) <EOL> def testCountFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testComplexCountFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , <NUM_LIT:5> , '<STR_LIT>' ] ) <EOL> def testCountStarFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT:*>' , '<STR_LIT>' ] ) <EOL> def testGroupConcatFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testNestedFunction ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , <EOL> [ <NUM_LIT:1> , '<STR_LIT>' , '<STR_LIT>' , <EOL> <NUM_LIT:0> , '<STR_LIT>' , '<STR_LIT:int>' , '<STR_LIT:left>' , '<STR_LIT:int>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testParentheses ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , <EOL> [ <NUM_LIT:2> , <NUM_LIT:1> , <NUM_LIT:3> , '<STR_LIT:->' , '<STR_LIT:*>' , - <NUM_LIT:1> , '<STR_LIT:*>' , '<STR_LIT>' ] ) <EOL> def testOrderOfOperations ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = """<STR_LIT>""" <EOL> self . _RunMathQuery ( expression , <EOL> [ '<STR_LIT:a>' , <NUM_LIT:1> , <NUM_LIT:1> , '<STR_LIT>' , '<STR_LIT:&>' , <NUM_LIT:2> , '<STR_LIT:|>' , '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT:2> , <EOL> '<STR_LIT:left>' , '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT> , <NUM_LIT> , '<STR_LIT>' , <NUM_LIT:2> , <NUM_LIT:5> , '<STR_LIT>' , '<STR_LIT:<>' , <EOL> '<STR_LIT:b>' , <NUM_LIT:2> , <NUM_LIT:5> , '<STR_LIT:+>' , <NUM_LIT:5> , - <NUM_LIT:1> , '<STR_LIT:*>' , <NUM_LIT:0> , '<STR_LIT:*>' , '<STR_LIT:->' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testTopThreeArguments ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , <NUM_LIT:1> , <NUM_LIT:1> , '<STR_LIT>' ] ) <EOL> def testAggregationFunctionArgument ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT:1> , <NUM_LIT:1> , '<STR_LIT>' ] ) <EOL> def testQuantiles ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:2> , '<STR_LIT>' , '<STR_LIT:+>' , '<STR_LIT>' ] ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT>' , <NUM_LIT:2> , '<STR_LIT:+>' , <NUM_LIT:1> , '<STR_LIT>' ] ) <EOL> def testStddev ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:20> , '<STR_LIT>' , '<STR_LIT:*>' , '<STR_LIT>' ] ) <EOL> def testVariance ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT:label>' , '<STR_LIT>' ] ) <EOL> def testLast ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ '<STR_LIT:label>' , '<STR_LIT>' , '<STR_LIT:/>' , '<STR_LIT>' ] ) <EOL> def testNth ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> expression = '<STR_LIT>' <EOL> self . _RunMathQuery ( expression , [ <NUM_LIT:1> , '<STR_LIT:label>' , '<STR_LIT>' ] ) <EOL> def _RunQuery ( self , query , select_arg = [ ] , from_arg = [ ] , where_arg = [ ] , <EOL> having_arg = [ ] , group_by_arg = [ ] , order_by_arg = [ ] , limit_arg = [ ] , <EOL> as_arg = { } , within_arg = { } ) : <EOL> """<STR_LIT>""" <EOL> clauses = { <EOL> '<STR_LIT>' : select_arg , <EOL> '<STR_LIT>' : as_arg , <EOL> '<STR_LIT>' : within_arg , <EOL> '<STR_LIT>' : from_arg , <EOL> '<STR_LIT>' : where_arg , <EOL> '<STR_LIT>' : having_arg , <EOL> '<STR_LIT>' : group_by_arg , <EOL> '<STR_LIT>' : order_by_arg , <EOL> '<STR_LIT>' : limit_arg , <EOL> } <EOL> real_clauses = parser . ParseQuery ( query ) <EOL> self . assertEqual ( clauses , real_clauses ) <EOL> def testMath ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ <NUM_LIT:1> , <NUM_LIT:4> , <NUM_LIT:2> , '<STR_LIT:/>' , <NUM_LIT:3> , '<STR_LIT:*>' , '<STR_LIT:+>' , <NUM_LIT:5> , '<STR_LIT:->' ] ] ) <EOL> def testMultipleMath ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ '<STR_LIT:a>' ] , [ <NUM_LIT:1> , <NUM_LIT:1> , '<STR_LIT:+>' ] , [ <NUM_LIT:1> , '<STR_LIT>' ] , [ '<STR_LIT>' ] ] ) <EOL> def testFromClause ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ <NUM_LIT:1> ] ] , from_arg = [ '<STR_LIT>' ] ) <EOL> def testWhereClause ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] ] , where_arg = [ '<STR_LIT:a>' , <NUM_LIT:1> , '<STR_LIT:<>' ] ) <EOL> def testHavingClause ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] ] , having_arg = [ '<STR_LIT:a>' , <NUM_LIT:1> , '<STR_LIT:<>' ] ) <EOL> def testGroupOrderClause ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] ] , group_by_arg = [ '<STR_LIT:a>' ] , <EOL> order_by_arg = [ '<STR_LIT:a>' ] ) <EOL> def testLimitClause ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] ] , limit_arg = [ <NUM_LIT:10> ] ) <EOL> def testSimpleCommands ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ <NUM_LIT:1> ] ] , from_arg = [ '<STR_LIT>' ] , <EOL> limit_arg = [ <NUM_LIT:5> ] ) <EOL> def testUnimplementedFunctions ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ '<STR_LIT>' , '<STR_LIT>' ] ] ) <EOL> def testAllCommands ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = """<STR_LIT>""" <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] , [ '<STR_LIT:b>' ] , [ '<STR_LIT:c>' ] , [ '<STR_LIT:d>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , where_arg = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:<>' ] , <EOL> having_arg = [ '<STR_LIT:c>' , '<STR_LIT:d>' , '<STR_LIT>' ] , <EOL> group_by_arg = [ '<STR_LIT:d>' , '<STR_LIT:c>' , '<STR_LIT:b>' , '<STR_LIT:a>' ] , <EOL> order_by_arg = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:c>' , '<STR_LIT:d>' ] , limit_arg = [ <NUM_LIT:4> ] ) <EOL> def testSomeCommands ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] , [ '<STR_LIT:b>' ] , [ '<STR_LIT:c>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , where_arg = [ '<STR_LIT:b>' , <NUM_LIT:1> , '<STR_LIT:+>' , '<STR_LIT:a>' , '<STR_LIT:<>' ] , <EOL> order_by_arg = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:c>' ] ) <EOL> def testComplexOrderBy ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] , [ '<STR_LIT:b>' ] , [ '<STR_LIT:c>' ] , [ '<STR_LIT:d>' ] ] , <EOL> order_by_arg = [ '<STR_LIT>' , '<STR_LIT:b>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def testAlias ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = """<STR_LIT>""" <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ <NUM_LIT:1> ] , [ <NUM_LIT:2> ] , [ <NUM_LIT:3> ] , [ <NUM_LIT:4> ] , [ <NUM_LIT:5> ] , [ <NUM_LIT:6> ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , where_arg = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT>' ] , <EOL> order_by_arg = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:c>' ] , <EOL> as_arg = { <NUM_LIT:0> : '<STR_LIT:a>' , <NUM_LIT:2> : '<STR_LIT:b>' , <NUM_LIT:5> : '<STR_LIT:c>' } ) <EOL> def testAliasWithoutAs ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ <NUM_LIT:1> ] ] , from_arg = [ '<STR_LIT>' ] , <EOL> as_arg = { <NUM_LIT:0> : '<STR_LIT:a>' } ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ <NUM_LIT:1> ] , [ <NUM_LIT:2> ] , [ <NUM_LIT:3> ] , [ <NUM_LIT:4> ] , [ <NUM_LIT:5> ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , as_arg = { <NUM_LIT:0> : '<STR_LIT:a>' , <NUM_LIT:1> : '<STR_LIT:b>' , <NUM_LIT:3> : '<STR_LIT:c>' , <NUM_LIT:4> : '<STR_LIT:e>' } ) <EOL> def testAliasAggregation ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ '<STR_LIT:*>' , '<STR_LIT>' ] , [ '<STR_LIT:a>' , <NUM_LIT:2> , '<STR_LIT:*>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , <EOL> as_arg = { <NUM_LIT:0> : '<STR_LIT:a>' } ) <EOL> def testFlatten ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] ) <EOL> def testMultipleFlatten ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> self . _RunQuery ( ebq_query , select_arg = [ [ '<STR_LIT:a>' ] ] , <EOL> from_arg = [ <EOL> '<STR_LIT>' ] ) <EOL> def testWithin ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ '<STR_LIT>' , '<STR_LIT>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , within_arg = { <NUM_LIT:0> : '<STR_LIT:a>' } ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ '<STR_LIT>' , '<STR_LIT>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , <EOL> as_arg = { <NUM_LIT:0> : '<STR_LIT:c>' } , <EOL> within_arg = { <NUM_LIT:0> : '<STR_LIT:a>' } ) <EOL> ebq_query = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> self . _RunQuery ( ebq_query , <EOL> select_arg = [ [ '<STR_LIT:a>' ] , [ '<STR_LIT>' , '<STR_LIT>' ] , [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> [ '<STR_LIT:f>' ] ] , <EOL> from_arg = [ '<STR_LIT>' ] , <EOL> as_arg = { <NUM_LIT:2> : '<STR_LIT:e>' , <NUM_LIT:3> : '<STR_LIT:g>' } , <EOL> within_arg = { <NUM_LIT:1> : '<STR_LIT:a>' , <NUM_LIT:2> : '<STR_LIT>' } ) <EOL> def _CheckParseFail ( self , command ) : <EOL> self . assertRaises ( ParseException , parser . ParseQuery , command ) <EOL> def testBadSelect ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> def testBadFrom ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> def testBadWhereHaving ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> def testBadOrderGroup ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> def testBadLimit ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> def testBadOrdering ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> def testMultipleTablesFail ( self ) : <EOL> logging . debug ( '<STR_LIT>' ) <EOL> ebq_query = '<STR_LIT>' <EOL> self . _CheckParseFail ( ebq_query ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> googletest . main ( ) </s>
