Skip to content

Instantly share code, notes, and snippets.

@pshchelo
Last active January 2, 2016 13:59
Show Gist options
  • Save pshchelo/8313408 to your computer and use it in GitHub Desktop.
Save pshchelo/8313408 to your computer and use it in GitHub Desktop.
# Assert misuses in tests:
# bug/1259023 - assertIs/assertIsNone - MERGED 1/2
ack "assert((Not)*Equal)\(.*(None|True|False).*\)"
# bug/1259292 - assertEqual (order of args) - inspect manually
ack "assertEqual\((.*)\)"
# bug/1259941 - assertIsInstance - MERGED
ack "assert((True|False)\(.*isinstance\(.*\).*\))|((Not)*(Equal)\(.*type\(.+\).*\))"
# bug/1259295 - assertIn - MERGED
ack "assert(True|False)\(.* in .*\)"
# bug/xxxxxxx - assertTrue/False with comparison
ack "assert(True|False)\(.* ((\!|=)=) .*\)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment