tests: Avoid hidden logic with better .assert*() method choices

We'll get better failure messages if we use an assertion method that
understands the comparison we're trying to make.  If you make the
comparison by hand and assertTrue(), you don't get much constructive
feedback ;).
Merge pull request #930 from wking/specific-assertions

tests: Avoid hidden logic with better .assert*() method choices