def setUp(self):
    super().setUp()
    self.patch_object(conncheck, 'ConnCheckManager', name='mock_ConnCheckManager')
    self.mock_conncheck_manager = mock.Mock()
    self.mock_ConnCheckManager.return_value = self.mock_conncheck_manager
    self.mock_collection_object = mock.Mock()
    self.mock_collection_object.logs_dir = 'a-logs-dir'
    self.mock_collection_object.log_format = conncheck.LogFormats.InfluxDB
    self.mock_collection_object.collection = 'a-collection'
def setUp(self):
    super().setUp()
    self.patch_object(conncheck, 'ConnCheckManager', name='mock_ConnCheckManager')
    self.mock_conncheck_manager = mock.Mock()
    self.mock_ConnCheckManager.return_value = self.mock_conncheck_manager
    self.mock_collection_object = mock.Mock()
    self.mock_collection_object.logs_dir = 'a-logs-dir'
    self.mock_collection_object.log_format = conncheck.LogFormats.InfluxDB
    self.mock_collection_object.collection = 'a-collection'