def testSQL(self): executor = ex.SQLiteExecutor("SQL") self.assertRaises(Exception, executor.execute)
def testDef(self): executor = ex.SQLiteExecutor("$def f():return 1") self.assertRaises(Exception, executor.execute)
def testAggregate(self): executor = ex.SQLiteExecutor("$aggregate f():\n\tdef step(self):pass") self.assertRaises(Exception, executor.execute)
def testExport(self): executor = ex.SQLiteExecutor("$export a") self.assertRaises(Exception, executor.execute)
def testView(self): executor = ex.SQLiteExecutor("$view -1") self.assertRaises(Exception, executor.execute)
def testDump(self): executor = ex.SQLiteExecutor("$dump a") self.assertRaises(Exception, executor.execute)
def testPrint(self): executor = ex.SQLiteExecutor("$print ok") executor.execute()
def testEmpty(self): executor = ex.SQLiteExecutor("/* first script */") executor.execute()