def _run(self, query, expected):
for cmd in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>results = self.query(cmd + "<STR_LIT:U+0020>" + query)<EOL>results = list(results)<EOL>if isinstance(expected, int):<EOL><INDENT>self.assertEqual(len(results), expected)<EOL><DEDENT>else:<EOL><INDENT>self.assertItemsEqual(results, expected)<EOL><DEDENT><DEDENT>
Test the query both with SELECT and SCAN