def has_attribute(self, table_name, attribute_name):
        """
        :param str table_name: Table name that exists attribute.
        :param str attribute_name: Attribute name to be tested.
        :return: |True| if the table has the attribute.
        :rtype: bool
        :raises simplesqlite.TableNotFoundError:
            |raises_verify_table_existence|

        :Examples:

            .. code:: python

                from simplesqlite import SimpleSQLite, TableNotFoundError
                import six

                table_name = "sample_table"
                con = SimpleSQLite("sample.sqlite", "w")
                con.create_table_with_data(
                    table_name=table_name,
                    attribute_name_list=["attr_a", "attr_b"],
                    data_matrix=[[1, "a"], [2, "b"]])

                six.print_(con.has_attribute(table_name, "attr_a"))
                six.print_(con.has_attribute(table_name, "not_existing"))
                try:
                    six.print_(con.has_attribute("not_existing", "attr_a"))
                except TableNotFoundError as e:
                    six.print_(e)

            .. parsed-literal::

                True
                False
                'not_existing' table not found in /tmp/sample.sqlite
        """

        self.verify_table_existence(table_name)

        if dataproperty.is_empty_string(attribute_name):
            return False

        return attribute_name in self.get_attribute_name_list(table_name)
dataset/ETHPy150Open thombashi/SimpleSQLite/simplesqlite/core.py/SimpleSQLite.has_attribute/original