def assertPNGFileEquals(self, expected, actual):
        expected_file = open(expected, 'rb')
        expected_bin = expected_file.read()
        expected_file.close()
        actual_file = open(actual, 'rb')
        actual_bin = actual_file.read()
        actual_file.close()
        try:
            self.assertEquals(expected_bin, actual_bin)
        except __HOLE__:
            raise AssertionError('PNG files are not equals')
dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/__init__.py/SpriteTestCase.assertPNGFileEquals