Example #1
0
 def test_create_table_err(self):
     dbUtil.create_table(self.conn, 'test_table')
Example #2
0
 def test_delete_table(self):
     expected = True
     dbUtil.create_table(self.conn, 'test_table_for_delete_table')
     actual = dbUtil.delete_table(self.conn, 'test_table_for_delete_table')
     eq_(actual, expected)
Example #3
0
 def test_create_table(self):
     expected = True
     actual = dbUtil.create_table(self.conn, 'case_table')
     eq_(actual, expected)
     dbUtil.delete_table(self.conn, 'case_table')
Example #4
0
 def setup(self):
     self.conn = dbUtil.connect()
     dbUtil.create_database(self.conn, 'test_database')
     self.conn.select_db('test_database')
     dbUtil.create_table(self.conn, 'test_table')