This assertion is duplicated elsewhere. (You might also convert it to use `self.assertIn`.)