ittapi-sys 0.5.0

Rust bindings for ittapi
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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