<filename>tests/system/test_base.py
from lmsensorsbeat import BaseTest

import os


class Test(BaseTest):

    def test_base(self):
        """
        Basic test with exiting Lmsensorsbeat normally
        """
        self.render_config_template(
                path=os.path.abspath(self.working_dir) + "/log/*"
        )

        lmsensorsbeat_proc = self.start_beat()
        self.wait_until( lambda: self.log_contains("lmsensorsbeat is running"))
        exit_code = lmsensorsbeat_proc.kill_and_wait()
        assert exit_code == 0

<filename>tests/system/test_base.py
from lmsensorsbeat import BaseTest

import os


class Test(BaseTest):

    def test_base(self):
        """
        Basic test with exiting Lmsensorsbeat normally
        """
        self.render_config_template(
                path=os.path.abspath(self.working_dir) + "/log/*"
        )

        lmsensorsbeat_proc = self.start_beat()
        self.wait_until( lambda: self.log_contains("lmsensorsbeat is running"))
        exit_code = lmsensorsbeat_proc.kill_and_wait()
        assert exit_code == 0

Basic test with exiting Lmsensorsbeat normally