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