def tests_quiet_colored_logo(self): """ This method test if the logo is not printed when quiet is activated. """ PyFunceble.CONFIGURATION["quiet"] = True Core.colored_logo() expected = "" actual = sys.stdout.getvalue() self.assertEqual(expected, actual)
def tests_colored_logo_green(self): """ This method test if the logo is green colored. """ PyFunceble.CONFIGURATION["counter"]["percentage"]["up"] = 51 Core.colored_logo() expected = self.logo_green actual = sys.stdout.getvalue() self.assertEqual(expected, actual) PyFunceble.CONFIGURATION["counter"]["percentage"]["up"] = 1