Exemplo n.º 1
0
class TestCursor(unittest.TestCase):
    def setUp(self):
        self.connection = SQLiteConnection(database=FILENAME).connect

    def testQueryRaisesNotImplemented(self):
        self.cursor = Cursor()
        with self.assertRaises(NotImplementedError):
            self.cursor._execute("SELECT * FROM test WHERE name=?", ('Glenn',))
Exemplo n.º 2
0
 def testQueryRaisesNotImplemented(self):
     self.cursor = Cursor()
     with self.assertRaises(NotImplementedError):
         self.cursor._execute("SELECT * FROM test WHERE name=?", ('Glenn',))