예제 #1
0
    def test_set_special_alpha(self):
        """> Create special escape sequence with alpha."""
        util.Color.alpha_num = 99
        result = sequences.set_special(11, COLORS["special"]["background"])

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Ph1F211E\033\\")
        else:
            self.assertEqual(result, "\033]11;[99]#1F211E\007")
예제 #2
0
    def test_set_special(self):
        """> Create special escape sequence."""
        alpha = "100"
        result = sequences.set_special(11, COLORS["special"]["background"],
                                       "h", alpha)

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Ph1F211E\033\\")
        else:
            self.assertEqual(result, "\033]11;#1F211E\033\\")
예제 #3
0
 def test_set_special_alpha(self):
     """> Create special escape sequence with alpha."""
     util.Color.alpha_num = 99
     result = sequences.set_special(11, COLORS["special"]["background"])
     self.assertEqual(result, "\033]11;[99]#1F211E\007")
예제 #4
0
 def test_set_special(self):
     """> Create special escape sequence."""
     result = sequences.set_special(11, COLORS["special"]["background"])
     self.assertEqual(result, "\x1b]11;#3A5130\x07")
예제 #5
0
 def test_set_special(self):
     """> Create special escape sequence."""
     result = sequences.set_special(11, COLORS["special"]["background"])
     self.assertEqual(result, "\033]11;#1F211E\007")