def assertImageEqual(self, image1, image2):
h1 = image1.histogram()<EOL>h2 = image2.histogram()<EOL>rms = math.sqrt(<EOL>reduce(<EOL>operator.add,<EOL>map(lambda a, b: (a - b) ** <NUM_LIT:2>, h1, h2)<EOL>) // len(h1)<EOL>)<EOL>self.assertEqual(rms, <NUM_LIT:0.0>)<EOL>
Assert that `image1` & `image2` are identical images.