def assertColumnNotExists(self, engine, table_name, column): self.assertFalse(oslodbutils.column_exists(engine, table_name, column))
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'))
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'))
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"))