示例#1
0
 def testImport(self):
     for tbl in self.tables:
         sql = 'SELECT COUNT(*) FROM %s' % tbl
         c = int(runSQLCommand(dbName, sql))
         self.assertEqual(c, self.tables[tbl],
                          'Table "%s" has the wrong cardinality.' % tbl)
示例#2
0
 def testImport(self):
   for tbl in self.tables:
     sql = 'SELECT COUNT(*) FROM %s' % tbl
     c = int(runSQLCommand(dbName, sql))
     self.assertEqual(c, self.tables[tbl], 'Table "%s" has the wrong cardinality.' % tbl)
示例#3
0
 def testCreateDB(self):
     for tbl in self.tables:
         output = runSQLCommand(dbName, '.schema %s' % tbl)
         self.assertNotEqual(len(output), 0,
                             'Table "%s" is not in the sqlite db.' % tbl)
示例#4
0
 def testCreateDB(self):
   for tbl in self.tables:
     output = runSQLCommand(dbName, '.schema %s' % tbl)
     self.assertNotEqual(len(output), 0, 'Table "%s" is not in the sqlite db.' % tbl)