avocado-framework/avocado

View on GitHub
selftests/unit/utils/test_pmem.py

Summary

Maintainability
A
0 mins
Test Coverage
import unittest.mock

from avocado.utils import pmem


class PMem(unittest.TestCase):

    def test_no_binaries(self):
        with unittest.mock.patch('avocado.utils.path.find_command',
                                 return_value=False):
            with self.assertRaises(pmem.PMemException):
                pmem.PMem()


if __name__ == '__main__':
    unittest.main()