Use more specific assertions for 'in' checks.

A lot of old code used `assertTrue(blah in blah)`, or variants on that,
which didn't tell you much if there was a failure. Nowadays, we have
assertIn and assertNotIn, which we can use instead. This switches our
tests to use these.

Reviewed at https://reviews.reviewboard.org/r/6064/