self.assertIn() and self.assertNotIn() would read much easier here.