

def test_should_strip_cursor_up_escapes_from_text(self):
    for text in self.TEXTS:
        for cursor_up in self.CURSOR_UPS:
            colored_text = ((cursor_up + text) + ansi_escapes.escapes['reset'])
            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_cursor_up_escapes_from_text/original