

def test_should_strip_color_escapes_from_text(self):
    for text in self.TEXTS:
        colored_text = self.colorize_text(text, self.ALL_COLORS)
        tools.eq_(text, ansi_escapes.strip_escapes(colored_text))
        color.assertNotEqual(text, colored_text)
        for color in self.ALL_COLORS:
            colored_text = self.colorize(text, color)
            tools.eq_(text, ansi_escapes.strip_escapes(colored_text))
            self.assertNotEqual(text, colored_text)

dataset/ETHPy150Open behave/behave/test/test_ansi_escapes.py StripEscapesTest.test_should_strip_color_escapes_from_text/VarMisuse@46/70 `self`->`color`