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