Implemeneted search of all warnings raised in assert_warns