Ejemplo n.º 1
0
 def test_cycles_through_fabulous_colors(self):
     Nosepride.formatter = Fabulous()
     plugin = Nosepride()
     self.assertEquals("\x1b[38;5;154m.\x1b[0m", plugin.pride("."))
     self.assertEquals("\x1b[38;5;154m.\x1b[0m", plugin.pride("."))
     self.assertEquals("\x1b[38;5;148m.\x1b[0m", plugin.pride("."))
Ejemplo n.º 2
0
 def test_cycles_through_primary_terminal_colors(self):
     Nosepride.formatter = Plain()
     plugin = Nosepride()
     self.assertEquals("\x1b[31m.\x1b[0m", plugin.pride("."))
     self.assertEquals("\x1b[32m.\x1b[0m", plugin.pride("."))
     self.assertEquals("\x1b[33m.\x1b[0m", plugin.pride("."))