There is also: self.assertContains(log_hander, handlers)