def setUp(self): self.mock_ctx = MockContext() self.cli_logging = CLILogging('clitest', cli_ctx=self.mock_ctx)
def test_cli_ctx_type_error(self): with self.assertRaises(TypeError): CLILogging('myclitest', cli_ctx=object())