import unittest

from . import _from_install_import


utils = _from_install_import('cupy_builder.install_utils')


class TestPrintWarning(unittest.TestCase):

    def test_print_warning(self):
        utils.print_warning('This is a test.')


class TestSearchOnPath(unittest.TestCase):

    def test_exec_not_found(self):
        assert utils.search_on_path(['no_such_exec']) is None
