def test_is_quiet(self): self.assertFalse(logger.is_quiet()) with logger.quiet(): self.assertFalse(logger.is_verbose())
def test_is_verbose(self): self.assertFalse(logger.is_verbose()) with logger.verbose(): self.assertTrue(logger.is_verbose())