Example #1
0
 def test_colorify_empty_string(self):
     string = ''
     self.assertEquals('', colorify(string))
Example #2
0
 def test_colorify_empty_string(self):
     string = ''
     self.assertEquals('', colorify(string))
Example #3
0
 def test_colorify(self):
     string = 'wow such is next'
     self.assertEquals(
         '\x1b[92mwow\x1b[0m \x1b[31msuch\x1b[0m \x1b[32mis\x1b[0m \x1b[34mnext\x1b[0m ',
         colorify(string))
Example #4
0
 def test_colorify(self):
     string = 'wow such is next'
     self.assertEquals(
         '\x1b[92mwow\x1b[0m \x1b[31msuch\x1b[0m \x1b[32mis\x1b[0m \x1b[34mnext\x1b[0m ',
         colorify(string))