#NEWLINE# def test_fuzz_can( self ) : #NEWLINE# #INDENT# self . CANEngine = CANSploit ( ) #NEWLINE# self . CANEngine . load_config ( 'tests/test_6.py' ) #NEWLINE# self . CANEngine . edit_module ( 0 , { #NEWLINE# #INDENT# 'id' : [ 111 ] , #NEWLINE# 'data' : [ 0 , 1 ] , #NEWLINE# 'delay' : 0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . CANEngine . start_loop ( ) #NEWLINE# time . sleep ( 1 ) #NEWLINE# self . CANEngine . call_module ( 0 , 's' ) #NEWLINE# time . sleep ( 3 ) #NEWLINE# ret = self . CANEngine . call_module ( 3 , 'p' ) #NEWLINE# index = 3 #NEWLINE# _bodyList = self . CANEngine . _enabledList [ index ] [ 1 ] . _bodyList #NEWLINE# self . assertTrue ( ( 511 == len ( _bodyList [ 111 ] ) ) , '511 uiniq packets, should be sent' )