예제 #1
0
 def testTermcolorFalse(self):
     """
     termcolor=False results in no terminal output
     """
     c = Colors(termcolor=False)
     self.assertFalse(c.termcolor)
     self.assertFalse(len(c.bold("")) > 0)
예제 #2
0
 def testTermcolorTrue(self):
     """
     termcolor=True results in terminal output
     """
     c = Colors(termcolor=True)
     self.assertTrue(c.termcolor)
     self.assertTrue(len(c.bold("")) > 0)