code: def has_attr(self, table_name, attr_name):
          
  
          self.verify_table_existence(table_name)
  
          if typepy.is_null_string(attr_name):
              return False
  
          return attr_name in self.fetch_attr_names(table_name)
docs: :param str table_name: Table name that the attribute exists.
          :param str attr_name: Attribute name to be tested.
          :return: |True| if the table has the attribute.
          :rtype: bool
          :raises simplesqlite.TableNotFoundError:
              |raises_verify_table_existence|
  
          :Sample Code:
              .. code:: python
  
                  import simplesqlite
  
                  table_name = "sample_table"
                  con = simplesqlite.SimpleSQLite("sample.sqlite", "w")
                  con.create_table_from_data_matrix(
                      table_name,
                      ["attr_a", "attr_b"],
                      [[1, "a"], [2, "b"]])
  
                  print(con.has_attr(table_name, "attr_a"))
                  print(con.has_attr(table_name, "not_existing"))
                  try:
                      print(con.has_attr("not_existing", "attr_a"))
                  except simplesqlite.TableNotFoundError as e:
                      print(e)
          :Output:
              .. parsed-literal::
  
                  True
                  False
                  'not_existing' table not found in /tmp/sample.sqlite