title: Comparing two Sqlalchemy Table Objects with Python unittest
body: <p>I am trying to see if two table objects match, and have found documentation regarding Python's <code>__eq__</code> function but am unsure how to use it with my code.  Here is the code I'm testing:</p>
  
  <pre><code>def get_table(self, table_name, select_stmt=None):
      """
          This method gets a table from the data connection using SQLAlchemy's reflection capability. Columns in the
          select_stmt are included, with all other table columns excluded.
          :param table_name: The name of the table being reflected.
          :type table_name: str
          :param select_stmt: The fields being included in the query. Default None.
          :type select_stmt:  str
          :returns:  SQLAlchemy Table object
      """
      table = Table(table_name, self.meta)
      self.log.debug("Reflecting table %s" % table_name)
  
      if select_stmt == "all_columns":
          select_stmt = None
  
      self.insp.reflecttable(table, select_stmt)
  
      return table
  </code></pre>
  
  <p>My test currently looks like:</p>
  
  <pre><code>    def test_select_all_data_no_columns(self):
      # Testing that when all columns are selected, None value is passed.
      given_result = DataConnector(self.source).get_table(self.table, "all_columns")
      expected_result = DataConnector(self.source).get_table(self.table)
  
      self.assertEquals(given_result, expected_result)
  </code></pre>