Debian Codegraph @

extra_tests/ctypes_tests/test_values.py

raw symbols SCIP
1 from ctypes import *
2
3 def test_a_string(dll):
4 """
5 A testcase which accesses *values* in a dll.
6 """
7 a_string = (c_char * 16).in_dll(dll, "a_string")
8 assert a_string.raw == b"0123456789abcdef"
9 a_string[15:16] = b'$'
10 assert dll.get_a_string_char(15) == ord('$')