replaced self.assertIn by assertTrue as yaml can't represent object