Python 2.6 compatibility.

Python 2.6 doesn't have `assertIn`, and since I'm still technically
supporting that version, might as well make the tests compatible with
it.