コード例 #1
0
 def assertColumnNotExists(self, engine, table_name, column):
     self.assertFalse(oslodbutils.column_exists(engine, table_name, column))
コード例 #2
0
 def test_column_exists(self):
     for col in ['a', 'b']:
         self.assertTrue(utils.column_exists(self.engine, 'test_table',
                                             col))
     self.assertFalse(
         utils.column_exists(self.engine, 'test_table', 'fake_column'))
コード例 #3
0
 def assertColumnNotExists(self, engine, table_name, column):
     self.assertFalse(oslodbutils.column_exists(engine, table_name, column))
コード例 #4
0
ファイル: test_utils.py プロジェクト: XiaoDongZhi/oslo.db
 def test_column_exists(self):
     for col in ['a', 'b']:
         self.assertTrue(utils.column_exists(self.engine, 'test_table',
                                             col))
     self.assertFalse(utils.column_exists(self.engine, 'test_table',
                                          'fake_column'))
コード例 #5
0
ファイル: test_utils.py プロジェクト: rossella/oslo.db
 def test_column_exists(self):
     for col in ["a", "b"]:
         self.assertTrue(utils.column_exists(self.engine, "test_table", col))
     self.assertFalse(utils.column_exists(self.engine, "test_table", "fake_column"))