

def assertCHRFileEquals(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 AssertionError:
        raise AssertionError('CHR files are not equals')

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/__init__.py SpriteTestCase.assertCHRFileEquals/original