def assertImagesEqual(self, im1, im2, msg=None):
if im1.size != im2.size or (
ImageChops.difference(im1, im2).getbbox() is not None):
raise self.failureException(
msg or 'The two images were not identical')
文章目录