def has_table(self, table_name):
        """
        :param str table_name: Table name to be tested.
        :return: |True| if the database has the table.
        :rtype: bool

        :Examples:

            .. code:: python

                from simplesqlite import SimpleSQLite
                import six

                con = SimpleSQLite("sample.sqlite", "w")
                con.create_table_with_data(
                    table_name="hoge",
                    attribute_name_list=["attr_a", "attr_b"],
                    data_matrix=[[1, "a"], [2, "b"]])
                six.print_(con.has_table("hoge"))
                six.print_(con.has_table("not_existing"))

            .. parsed-literal::

                True
                False
        """

        try:
            simplesqlite.validate_table_name(table_name)
        except ValueError:
            return False

        return self.get_table_name_list() in table_name
dataset/ETHPy150Open thombashi/SimpleSQLite/simplesqlite/core.py/SimpleSQLite.has_table/swapped operands of `in`