def test_ResetSpecialColor_Single2(self):
        n = "0"
        esccmd.ChangeSpecialColor2(n, "?")
        original = escio.ReadOSC("5")

        esccmd.ChangeSpecialColor2(n, "#aaaabbbbcccc")
        esccmd.ChangeSpecialColor2(n, "?")
        AssertEQ(escio.ReadOSC("5"), ";" + str(int(n)) + ";rgb:aaaa/bbbb/cccc")

        esccmd.ResetSpecialColor(n)
        esccmd.ChangeSpecialColor2(n, "?")
        AssertEQ(escio.ReadOSC("5"), original)
    def test_ResetSpecialColor_Single(self):
        offset = GetIndexedColors()
        n = "0"
        esccmd.ChangeSpecialColor(n, "?")
        original = escio.ReadOSC("4")

        esccmd.ChangeSpecialColor(n, "#aaaabbbbcccc")
        esccmd.ChangeSpecialColor(n, "?")
        AssertEQ(escio.ReadOSC("4"),
                 ";" + str(int(n) + offset) + ";rgb:aaaa/bbbb/cccc")

        esccmd.ResetSpecialColor(n)
        esccmd.ChangeSpecialColor(n, "?")
        AssertEQ(escio.ReadOSC("4"), original)
    def test_ResetSpecialColor_Multiple2(self):
        n1 = "0"
        n2 = "1"
        esccmd.ChangeSpecialColor2(n1, "?", n2, "?")
        original1 = escio.ReadOSC("5")
        original2 = escio.ReadOSC("5")

        esccmd.ChangeSpecialColor2(n1, "#aaaabbbbcccc")
        esccmd.ChangeSpecialColor2(n2, "#ddddeeeeffff")
        esccmd.ChangeSpecialColor2(n1, "?")
        AssertEQ(escio.ReadOSC("5"),
                 ";" + str(int(n1)) + ";rgb:aaaa/bbbb/cccc")
        esccmd.ChangeSpecialColor2(n2, "?")
        AssertEQ(escio.ReadOSC("5"),
                 ";" + str(int(n2)) + ";rgb:dddd/eeee/ffff")

        esccmd.ResetSpecialColor(n1, n2)
        esccmd.ChangeSpecialColor2(n1, "?", n2, "?")
        actual1 = escio.ReadOSC("5")
        actual2 = escio.ReadOSC("5")
        AssertEQ(actual1, original1)
        AssertEQ(actual2, original2)