title: Test equality of different instances of a class
body: <p>I am trying to use assert() to check the content of a simple class without the need to check each of the members of the class. Is something like the following possible?</p>
  
  <pre><code>def class class_data(object):
      def __init__ (self, name = 'Richie', school = 'Jefferson High', age = 17):
          self.name = name
          self.school = school
          self.age = age
  
  
  myschool = class_data()
  
  #check for correct data via assert
  assert (myschool == class_data('Fonzie', 'Lincoln High', 17))
  </code></pre>
  
  <p>Please excuse me if my questions is nonsensical, and many thanks in advance.</p>