title: What is actually assertEquals in Python?
body: <p>I have the following test.py file in django. can you please explain this code?</p>
  
  <pre><code>from contacts.models import Contact
  ...
  class ContactTests(TestCase):
      """Contact model tests."""
  
      def test_str(self):
  
          contact = Contact(first_name='John', last_name='Smith')
  
          self.assertEquals(
              str(contact),
              'John Smith',
          )
  </code></pre>