Exemplo n.º 1
0
 def test_create_table_err(self):
     dbUtil.create_table(self.conn, 'test_table')
Exemplo n.º 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)
Exemplo n.º 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')
Exemplo n.º 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')