

def assertSpriteEquals(self, expected, actual):
    try:
        self.assertEquals(expected, actual)
    except:
        ENDC = '\x1b[0m'
        e = get_printable_sprite(expected)
        a = get_printable_sprite(actual)
        out = ''
        for i in range(8):
            if (expected == 4):
                out += (((((e[i] + ENDC) + ' != ') + a[i]) + ENDC) + '\n')
            else:
                out += (((((e[i] + ENDC) + '    ') + a[i]) + ENDC) + '\n')
        raise AssertionError(('Sprites are not equal\n\n' + out))

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/__init__.py SpriteTestCase.assertSpriteEquals/VarMisuse@66/87 `i`->`expected`