Use alternative to `assertIn`

`assertIn` is new to python 2.7. Since we're using pytest and we want to
support python 2.6 as well, assertIn calls be replaced with
`assert a in b`.

See https://docs.python.org/2/library/unittest.html#unittest.TestCase.assertIn.