コード例 #1
0
 def test_colorify_empty_string(self):
     string = ''
     self.assertEquals('', colorify(string))
コード例 #2
0
ファイル: dogeON_test.py プロジェクト: honzab/JSONtoDogeON
 def test_colorify_empty_string(self):
     string = ''
     self.assertEquals('', colorify(string))
コード例 #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))
コード例 #4
0
ファイル: dogeON_test.py プロジェクト: honzab/JSONtoDogeON
 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))