Ejemplo n.º 1
0
 def test_replace(self):
     from clint.textui.colored import ColoredString
     new_str = ColoredString('green', "hello world")
     output = new_str.replace("world", "universe")
     assert output.s == "hello universe"
Ejemplo n.º 2
0
 def test_replace(self):
     from clint.textui.colored import ColoredString
     new_str = ColoredString('green', "hello world")
     output = new_str.replace("world", "universe")
     assert output.s == "hello universe"
Ejemplo n.º 3
0
 def test_replace(self):
     new_str = ColoredString('green', "hello world")
     output = new_str.replace("world", "universe")
     assert output.s == "hello universe"