def test_generated_column_names(self): self.assertTrue(dbutils.column_exists('person', 'name')) self.assertTrue(dbutils.column_exists('person', 'age')) self.assertFalse(dbutils.column_exists('person', 'juice'))
def test_generated_column_names(self): self.assertTrue(dbutils.column_exists('person', 'pretty_name')) self.assertTrue(dbutils.column_exists('person', 'Age')) self.assertFalse(dbutils.column_exists('person', 'Gender'))
def test_generated_column_names(self): self.assertTrue(dbutils.column_exists('test12', 'name')) self.assertTrue(dbutils.column_exists('test12', 'phone_model')) self.assertTrue(dbutils.column_exists('test12', 'age')) self.assertTrue(dbutils.column_exists('test12', 'juice'))
def test_weird_headers(self): # Happy $8124 0*$ Email self.assertTrue(dbutils.column_exists('taxi', 'Happy_8124_0_Email')) # )()(Happy @@ Ph@one $$ self.assertTrue(dbutils.column_exists('taxi', 'phone'))
def test_generated_column_names(self): self.assertTrue(dbutils.column_exists('email', 'column_0')) self.assertTrue(dbutils.column_exists('email', 'column_1'))
def test_column_names(self): self.assertTrue(dbutils.column_exists('taxi', 'HappyEmail')) self.assertTrue(dbutils.column_exists('taxi', 'phone'))