Skip to content

Instantly share code, notes, and snippets.

@fgaudin
Created April 29, 2011 20:18
Show Gist options
  • Save fgaudin/948960 to your computer and use it in GitHub Desktop.
Save fgaudin/948960 to your computer and use it in GitHub Desktop.
Comparing list
(Pdb) issues = response.context['issues']
(Pdb) should = [i2, i1, i3, i4]
(Pdb) issues == should
False
(Pdb) issues[0] == should[0]
True
(Pdb) issues[1] == should[1]
True
(Pdb) issues[2] == should[2]
True
(Pdb) issues[3] == should[3]
True
(Pdb) issues == should
False
(Pdb) issues
[<Issue: B>, <Issue: A>, <Issue: C>, <Issue: D>]
(Pdb) should
[<Issue: B>, <Issue: A>, <Issue: C>, <Issue: D>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment