Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad ListLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num NameLoad Assign NameStore Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num NameLoad Assign NameStore Num Assign NameStore Call NameLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore Call BinOpMult NameLoad Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num Assign AttributeStore SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Str
N/A N/A ctypes N/A struct N/A unittest N/A logging N/A time subprocess Popen os path kill N/A snap7 snap7.snap7exceptions Snap7Exception snap7.snap7types S7AreaDB S7WLByte S7DataItem snap7 util N/A N/A N/A logging basicConfig level N/A logging WARNING N/A ip 127.0.0.1 N/A tcpport 1102 N/A db_number 1 N/A rack 1 N/A slot 1 TestClient N/A N/A unittest TestCase N/A setUpClass N/A N/A cls N/A N/A N/A server_path N/A N/A path join N/A N/A path dirname N/A N/A path realpath N/A snap7 __file__ bin/snap7-server.py N/A N/A cls server_pid N/A N/A Popen N/A server_path pid N/A N/A N/A time sleep 2 N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A kill N/A cls server_pid 1 N/A classmethod setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A N/A snap7 client Client N/A N/A N/A N/A self client connect ip rack slot tcpport N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self client disconnect N/A N/A N/A N/A self client destroy N/A test_db_read N/A N/A self N/A N/A N/A size 40 N/A start 0 N/A db 1 N/A data N/A bytearray 40 N/A N/A N/A N/A self client db_write db_number db start start data data N/A result N/A N/A N/A self client db_read db_number db start start size size N/A N/A N/A self assertEqual data result N/A test_db_write N/A N/A self N/A N/A N/A size 40 N/A data N/A bytearray size N/A N/A N/A N/A self client db_write db_number 1 start 0 data data N/A test_db_get N/A N/A self N/A N/A N/A N/A N/A N/A self client db_get db_number db_number N/A test_read_multi_vars N/A N/A self N/A N/A N/A db 1 N/A test_value_1 129.5 N/A test_bytes_1 N/A bytearray N/A N/A struct pack >f test_value_1 N/A N/A N/A N/A self client db_write db 0 test_bytes_1 N/A test_value_2 -129.5 N/A test_bytes_2 N/A bytearray N/A N/A struct pack >f test_value_2 N/A N/A N/A N/A self client db_write db 4 test_bytes_2 N/A test_value_3 123 N/A test_bytes_3 N/A bytearray N/A 0 0 N/A N/A N/A util set_int test_bytes_3 0 test_value_3 N/A N/A N/A N/A self client db_write db 8 test_bytes_3 N/A test_values N/A test_value_1 test_value_2 test_value_3 N/A data_items N/A N/A S7DataItem 3 N/A N/A N/A data_items N/A 0 Area N/A N/A ctypes c_int32 S7AreaDB N/A N/A N/A data_items N/A 0 WordLen N/A N/A ctypes c_int32 S7WLByte N/A N/A N/A data_items N/A 0 Result N/A N/A ctypes c_int32 0 N/A N/A N/A data_items N/A 0 DBNumber N/A N/A ctypes c_int32 db N/A N/A N/A data_items N/A 0 Start N/A N/A ctypes c_int32 0 N/A N/A N/A data_items N/A 0 Amount N/A N/A ctypes c_int32 4 N/A N/A N/A data_items N/A 1 Area N/A N/A ctypes c_int32 S7AreaDB N/A N/A N/A data_items N/A 1 WordLen N/A N/A ctypes c_int32 S7WLByte N/A N/A N/A data_items N/A 1 Result N/A N/A ctypes c_int32 0 N/A N/A N/A data_items N/A 1 DBNumber N/A N/A ctypes c_int32 db N/A N/A N/A data_items N/A 1 Start N/A N/A ctypes c_int32 4 N/A N/A N/A data_items N/A 1 Amount N/A N/A ctypes c_int32 4 N/A N/A N/A data_items N/A 2 Area N/A N/A ctypes c_int32 S7AreaDB N/A N/A N/A data_items N/A 2 WordLen N/A N/A ctypes c_int32 S7WLByte N/A N/A N/A data_items N/A 2 Result N/A N/A ctypes c_int32 0 N/A N/A N/A data_items N/A 2 DBNumber N/A N/A ctypes c_int32 db N/A N/A N/A data_items N/A 2 Start N/A N/A ctypes c_int32 8 N/A N/A N/A data_items N/A 2 Amount N/A N/A ctypes c_int32 2 N/A di data_items N/A N/A dataBuffer N/A N/A ctypes create_string_buffer N/A di Amount N/A pBuffer N/A N/A ctypes cast N/A N/A ctypes pointer dataBuffer N/A N/A ctypes POINTER N/A ctypes c_uint8 N/A N/A di pData pBuffer N/A N/A result data_items N/A N/A N/A self client read_multi_vars data_items N/A result_values N/A N/A byte_to_value N/A N/A util get_real N/A util get_real N/A util get_int N/A i N/A range 0 N/A len data_items N/A N/A btv N/A byte_to_value N/A i N/A di N/A data_items N/A i N/A value N/A btv N/A di pData 0 N/A N/A N/A result_values append value N/A N/A N/A self assertEqual N/A result_values N/A 0 N/A test_values N/A 0 N/A N/A N/A self assertEqual N/A result_values N/A 1 N/A test_values N/A 1 N/A N/A N/A self assertEqual N/A result_values N/A 2 N/A test_values N/A 2 N/A test_upload N/A N/A self N/A N/A N/A 
        this raises an exception due to missing authorization? maybe not
        implemented in server emulator
         N/A N/A N/A self assertRaises Snap7Exception N/A N/A self client upload db_number N/A test_download N/A N/A self N/A N/A N/A data N/A bytearray 1024 N/A N/A N/A N/A self client download block_num db_number data data N/A N/A N/A unittest skip TODO: invalid block size test_read_area N/A N/A self N/A N/A N/A area N/A N/A N/A snap7 snap7types areas DB N/A dbnumber 1 N/A amount 1 N/A start 1 N/A N/A N/A N/A self client read_area area dbnumber start amount N/A test_write_area N/A N/A self N/A N/A N/A area N/A N/A N/A snap7 snap7types areas DB N/A dbnumber 1 N/A size 1 N/A start 1 N/A data N/A bytearray size N/A N/A N/A N/A self client write_area area dbnumber start data N/A test_list_blocks N/A N/A self N/A N/A N/A blockList N/A N/A N/A self client list_blocks N/A test_list_blocks_of_type N/A N/A self N/A N/A N/A N/A N/A N/A self client list_blocks_of_type DB 10 N/A N/A N/A self assertRaises Exception N/A N/A self client list_blocks_of_type NOblocktype 10 N/A test_get_block_info N/A N/A self N/A N/A N/A test Cli_GetAgBlockInfo N/A N/A N/A N/A self client get_block_info DB 1 N/A N/A N/A self assertRaises Exception N/A N/A self client get_block_info NOblocktype 10 N/A N/A N/A self assertRaises Exception N/A N/A self client get_block_info DB 10 N/A test_get_cpu_state N/A N/A self N/A N/A N/A this tests the get_cpu_state function N/A N/A N/A N/A self client get_cpu_state N/A test_set_session_password N/A N/A self N/A N/A N/A password abcdefgh N/A N/A N/A N/A self client set_session_password password N/A test_clear_session_password N/A N/A self N/A N/A N/A N/A N/A N/A self client clear_session_password N/A test_set_connection_params N/A N/A self N/A N/A N/A N/A N/A N/A self client set_connection_params 10.0.0.2 10 10 N/A test_set_connection_type N/A N/A self N/A N/A N/A N/A N/A N/A self client set_connection_type 1 N/A N/A N/A N/A self client set_connection_type 2 N/A N/A N/A N/A self client set_connection_type 3 N/A N/A N/A N/A self client set_connection_type 20 N/A test_get_connected N/A N/A self N/A N/A N/A N/A N/A N/A self client get_connected N/A test_ab_read N/A N/A self N/A N/A N/A start 1 N/A size 1 N/A data N/A bytearray size N/A N/A N/A N/A self client ab_write start start data data N/A N/A N/A N/A self client ab_read start start size size N/A N/A N/A unittest skip TODO: item not available? test_ab_write N/A N/A self N/A N/A N/A start 1 N/A size 10 N/A data N/A bytearray size N/A N/A N/A N/A self client ab_write start start data data N/A N/A N/A unittest skip TODO: crash client: FATAL: exception not rethrown test_as_ab_read N/A N/A self N/A N/A N/A start 1 N/A size 1 N/A N/A N/A N/A self client as_ab_read start start size size N/A N/A N/A unittest skip TODO: crash client: FATAL: exception not rethrown test_as_ab_write N/A N/A self N/A N/A N/A start 1 N/A size 10 N/A data N/A bytearray size N/A N/A N/A N/A self client as_ab_write start start data data N/A N/A N/A unittest skip TODO: not yet fully implemented test_compress N/A N/A self N/A N/A N/A time 1000 N/A N/A N/A N/A self client compress time N/A test_as_compress N/A N/A self N/A N/A N/A time 1000 N/A N/A N/A N/A self client as_compress time N/A test_set_param N/A N/A self N/A N/A N/A values N/A N/A N/A N/A snap7 snap7types PingTimeout 800 N/A N/A N/A snap7 snap7types SendTimeout 15 N/A N/A N/A snap7 snap7types RecvTimeout 3500 N/A N/A N/A snap7 snap7types SrcRef 128 N/A N/A N/A snap7 snap7types DstRef 128 N/A N/A N/A snap7 snap7types SrcTSap 128 N/A N/A N/A snap7 snap7types PDURequest 470 N/A N/A param value values N/A N/A N/A N/A N/A self client set_param param value N/A N/A N/A self assertRaises Exception N/A N/A self client set_param N/A N/A snap7 snap7types RemotePort 1 N/A test_get_param N/A N/A self N/A N/A N/A expected N/A N/A N/A N/A snap7 snap7types RemotePort tcpport N/A N/A N/A snap7 snap7types PingTimeout 750 N/A N/A N/A snap7 snap7types SendTimeout 10 N/A N/A N/A snap7 snap7types RecvTimeout 3000 N/A N/A N/A snap7 snap7types SrcRef 256 N/A N/A N/A snap7 snap7types DstRef 0 N/A N/A N/A snap7 snap7types SrcTSap 256 N/A N/A N/A snap7 snap7types PDURequest 480 N/A N/A param value expected N/A N/A N/A N/A self assertEqual N/A N/A N/A self client get_param param value N/A non_client N/A N/A N/A snap7 snap7types LocalPort N/A N/A snap7 snap7types WorkInterval N/A N/A snap7 snap7types MaxClients N/A N/A snap7 snap7types BSendTimeout N/A N/A snap7 snap7types BRecvTimeout N/A N/A snap7 snap7types RecoveryTime N/A N/A snap7 snap7types KeepAliveTime N/A param non_client N/A N/A N/A N/A self assertRaises Exception N/A N/A self client get_param non_client N/A test_as_copy_ram_to_rom N/A N/A self N/A N/A N/A N/A N/A N/A self client copy_ram_to_rom N/A N/A N/A unittest skip TODO: not yet fully implemented test_as_ct_read N/A N/A self N/A N/A N/A N/A N/A N/A self client as_ct_read N/A N/A N/A unittest skip TODO: not yet fully implemented test_as_ct_write N/A N/A self N/A N/A N/A N/A N/A N/A self client as_ct_write N/A N/A N/A unittest skip TODO: not yet fully implemented test_as_db_fill N/A N/A self N/A N/A N/A N/A N/A N/A self client as_db_fill N/A N/A N/A unittest skip TODO: not yet fully implemented test_as_db_get N/A N/A self N/A N/A N/A N/A N/A N/A self client db_get db_number db_number N/A test_as_db_read N/A N/A self N/A N/A N/A size 40 N/A start 0 N/A db 1 N/A data N/A bytearray 40 N/A N/A N/A N/A self client db_write db_number db start start data data N/A result N/A N/A N/A self client as_db_read db_number db start start size size N/A N/A N/A self assertEqual data result N/A N/A N/A unittest skip TODO: crash client: FATAL: exception not rethrown test_as_db_write N/A N/A self N/A N/A N/A size 40 N/A data N/A bytearray size N/A N/A N/A N/A self client as_db_write db_number 1 start 0 data data N/A N/A N/A unittest skip TODO: crash client: FATAL: exception not rethrown test_as_download N/A N/A self N/A N/A N/A data N/A bytearray 128 N/A N/A N/A N/A self client as_download block_num -1 data data N/A test_plc_stop N/A N/A self N/A N/A N/A N/A N/A N/A self client plc_stop N/A test_plc_hot_start N/A N/A self N/A N/A N/A N/A N/A N/A self client plc_hot_start N/A test_plc_cold_start N/A N/A self N/A N/A N/A N/A N/A N/A self client plc_cold_start N/A test_get_pdu_length N/A N/A self N/A N/A N/A pduRequested N/A N/A N/A self client get_param 10 N/A pduSize N/A N/A N/A self client get_pdu_length N/A N/A N/A self assertEqual pduSize pduRequested N/A test_get_cpu_info N/A N/A self N/A N/A N/A expected N/A N/A ModuleTypeName CPU 315-2 PN/DP N/A SerialNumber S C-C2UR28922012 N/A ASName SNAP7-SERVER N/A Copyright Original Siemens Equipment N/A ModuleName CPU 315-2 PN/DP N/A cpuInfo N/A N/A N/A self client get_cpu_info N/A N/A param value expected N/A N/A N/A N/A self assertEqual N/A N/A N/A getattr cpuInfo param decode utf-8 value N/A N/A TestClientBeforeConnect N/A N/A unittest TestCase N/A N/A 
    Test suite of items that should run without an open connection.
     setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A N/A snap7 client Client N/A test_set_param N/A N/A self N/A N/A N/A values N/A N/A N/A N/A snap7 snap7types RemotePort 1102 N/A N/A N/A snap7 snap7types PingTimeout 800 N/A N/A N/A snap7 snap7types SendTimeout 15 N/A N/A N/A snap7 snap7types RecvTimeout 3500 N/A N/A N/A snap7 snap7types SrcRef 128 N/A N/A N/A snap7 snap7types DstRef 128 N/A N/A N/A snap7 snap7types SrcTSap 128 N/A N/A N/A snap7 snap7types PDURequest 470 N/A N/A param value values N/A N/A N/A N/A N/A self client set_param param value N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main N/A 
Cli_AsEBRead
Cli_AsEBWrite
Cli_AsFullUpload
Cli_AsListBlocksOfType
Cli_AsMBRead
Cli_AsMBWrite
Cli_AsReadArea
Cli_AsReadSZL
Cli_AsReadSZLList
Cli_AsTMRead
Cli_AsTMWrite
Cli_AsUpload
Cli_AsWriteArea
Cli_CheckAsCompletion
Cli_Connect
Cli_CopyRamToRom
Cli_CTRead
Cli_CTWrite
Cli_DBFill
Cli_Delete
Cli_EBRead
Cli_EBWrite
Cli_ErrorText
Cli_FullUpload
Cli_GetAgBlockInfo
Cli_GetCpInfo
Cli_GetExecTime
Cli_GetLastError
Cli_GetOrderCode
Cli_GetParam
Cli_GetPduLength
Cli_GetPgBlockInfo
Cli_GetPlcDateTime
Cli_GetPlcStatus
Cli_GetProtection
Cli_IsoExchangeBuffer
Cli_MBRead
Cli_MBWrite
Cli_ReadArea
Cli_ReadMultiVars
Cli_ReadSZL
Cli_ReadSZLList
Cli_SetAsCallback
Cli_SetParam
Cli_SetPlcDateTime
Cli_SetPlcSystemDateTime
Cli_SetSessionPassword
Cli_TMRead
Cli_TMWrite
Cli_WaitAsCompletion
Cli_WriteMultiVars
