Source

pygame / test_msidb_dbapi20.py

#!/usr/bin/env python
import dbapi20
import unittest
import msidb
import os

db_path = 'testdb.msi'

class test_msidb(dbapi20.DatabaseAPI20Test):
    driver = msidb
    connect_args = ()
    connect_kw_args = {'dsn': db_path, 'persist': msidb.OPEN_TRANSACT}

    table_prefix = ''
    ddl1 = 'create table %sbooze (name char(20) primary key name)' % table_prefix
    ddl2 = 'create table %sbarflys (name char(20) primary key name)' % table_prefix
    xddl1 = 'drop table %sbooze' % table_prefix
    xddl2 = 'drop table %sbarflys' % table_prefix

    def setUp(self):
        # Call superclass setUp In case this does something in the
        # future
        dbapi20.DatabaseAPI20Test.setUp(self) 

        if not os.path.exists(db_path):
            con = self.driver.connect(db_path, persist=msidb.OPEN_CREATE)
            con.close()

    def tearDown(self):
        dbapi20.DatabaseAPI20Test.tearDown(self)

    def test_nextset(self): pass
    def test_setoutputsize(self): pass
    def test_callproc(self): pass

if __name__ == '__main__':
    unittest.main()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.