blob: 81d3777be2580a3d8621ab2aec6827be6d3e2078 [file] [log] [blame]
from unittest import main as unittest_main, TestCase
from ittapi_native_mock import patch as ittapi_native_patch
import ittapi
class ThreadNamingTests(TestCase):
@ittapi_native_patch('thread_set_name')
def test_string_handle_call(self, thread_set_name_mock):
name = 'my thread'
ittapi.thread_set_name(name)
thread_set_name_mock.assert_called_once_with(name)
if __name__ == '__main__':
unittest_main() # pragma: no cover