def testTables(self):
        """testing cursor.tables()"""
        c = self.cursor()
        try:
            c.tables(None, None, None, None)
            # let's look for zxtesting
            found = 0
            while not found:
                try:
                    found = "zxtesting" == c.next()[2].lower()
                except __HOLE__:
                    break
            assert found, "expected to find 'zxtesting'"
            c.tables(None, None, "zxtesting", None)
            self.assertEquals(1, len(c.fetchall()))
            c.tables(None, None, "zxtesting", ("TABLE",))
            self.assertEquals(1, len(c.fetchall()))
            c.tables(None, None, "zxtesting", ("table",))
            self.assertEquals(1, len(c.fetchall()))
        finally:
            c.close()
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/zxjdbc/zxtest.py/zxAPITestCase.testTables