title: Django 1.4 - assertQuerysetEqual - how to use method
body: <p>I'm wondering how the TestCase.assertQuerysetEqual method works. I tried it in different ways, each of them leading me to another error message.</p>
  
  <pre><code>#create a backup of all records in the tree
  tree_record_backup = list(Tree.objects.all())
  
  #do some updates on another table, which should not affect the tree table if everything goes wrong
  
  #check if list of tree records did not changed
  tree_record_qs = Tree.objects.all()
  #Number1:
  self.assertQuerysetEqual(tree_record_qs,[repr(tree_record_backup)])
  #Number2:
  self.assertQuerysetEqual(tree_record_qs,tree_record_backup)
  </code></pre>
  
  <p>Error Message for Number1:</p>
  
  <pre><code>First list contains 21 additional elements.
  First extra element 1:
  node.pk: 2 - node: node2 - pk: 2 - level: 0 - ancestor: 2
  </code></pre>
  
  <p>Error Message for Number 2:</p>
  
  <pre><code>AssertionError: Lists differ: ['&lt;Tree: node.pk: 1 - node: ro... != [&lt;Tree: node.pk: 1 - node: roo...
  
  First differing element 0:
  &lt;Tree: node.pk: 1 - node: root - pk: 1 - level: 0 - ancestor: 1&gt;
  node.pk: 1 - node: root - pk: 1 - level: 0 - ancestor: 1
  </code></pre>
  
  <p>Thanks for hints how to use the assertQuerysetEqual method correctly.</p>