def test_table_exists(self):

        self.assertTrue(self.conn.table_exists(self.EXPECTED_TABLE_LIST[0]),
                        "table_exists cannot find expected table '%s'." %
                        self.EXPECTED_TABLE_LIST[0])
        self.assertTrue(self.conn.table_exists(self.EXPECTED_TABLE_LIST[-1]),
                        "table_exists cannnot find expected table '%s'." %
                        self.EXPECTED_TABLE_LIST[-1])
        self.assertTrue(self.conn.table_exists(self.EXPECTED_TABLE_LIST[5]),
                        "table_exists cannnot find expected table '%s'." %
                        self.EXPECTED_TABLE_LIST[5])

        self.assertFalse(self.conn.table_exists(self.NOT_A_TABLE),
                         "table_exists found nonexistant table '%s'." %
                         self.NOT_A_TABLE)
Finish session safely (do not raise if already finished by a dropped
dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/test_dbcompare.py/TestComparisonWrapper.test_table_exists--crossover with--dataset/ETHPy150Open flaviogrossi/sockjs-cyclone/sockjs/cyclone/basehandler.py/BaseHandler.safe_finish