Coverage for src/km3pipe/io/tests/test_ch.py: 100%
16 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-19 03:14 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-19 03:14 +0000
1# Filename: test_ch.py
2# pylint: disable=locally-disabled,C0111,R0904,C0301,C0103,W0212
3from km3pipe.testing import TestCase, patch, Mock
4from km3pipe.io.ch import CHPump
6__author__ = "Tamas Gal"
7__copyright__ = "Copyright 2018, Tamas Gal and the KM3NeT collaboration."
8__credits__ = []
9__license__ = "MIT"
10__maintainer__ = "Tamas Gal"
11__email__ = "tgal@km3net.de"
12__status__ = "Development"
15class TestCHPump(TestCase):
16 @patch("km3pipe.io.ch.CHPump._init_controlhost")
17 @patch("km3pipe.io.ch.CHPump._start_thread")
18 def test_init(self, init_controlhost_mock, start_thread_mock):
19 CHPump()
20 init_controlhost_mock.assert_called_once()
21 start_thread_mock.assert_called_once()