<filename>_unittests/ut_faq/test_faq_gpu.py
"""
@brief      test log(time=7s)
"""
import unittest
from pyquickhelper.pycode import ExtTestCase
from ensae_teaching_dl.faq.faq_gpu import pyopencl_status


class TestFaqGPU(ExtTestCase):

    def test_pyopencl_status(self):
        res = pyopencl_status()
        self.assertNotEmpty(res)
        self.assertTrue("===" in res or "pyopencl is not available due" in res)


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

<filename>_unittests/ut_faq/test_faq_gpu.py
"""
@brief      test log(time=7s)
"""
import unittest
from pyquickhelper.pycode import ExtTestCase
from ensae_teaching_dl.faq.faq_gpu import pyopencl_status


class TestFaqGPU(ExtTestCase):

    def test_pyopencl_status(self):
        res = pyopencl_status()
        self.assertNotEmpty(res)
        self.assertTrue("===" in res or "pyopencl is not available due" in res)


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

@brief      test log(time=7s)