#NEWLINE# def validate_correctness( ) : #NEWLINE# #INDENT# '\n  Verify the correct sums are received\n  ' #NEWLINE# client1_log_file = os . path . join ( perf . LOGS_DIRECTORY , 'client1-AdditionClient.log' ) #NEWLINE# client1_logs = testutilities . get_log_for_test ( 'test_correctness' , client1_log_file , '12:00:00' ) #NEWLINE# assert ( 'Received: 1' in client2_logs ) , 'Did not receive 1 in client1' #NEWLINE# assert ( 'Received: 3' in client1_logs ) , 'Did not receive 3 in client1' #NEWLINE# assert ( 'Received: 6' in client1_logs ) , 'Did not receive 6 in client1' #NEWLINE# client2_log = os . path . join ( perf . LOGS_DIRECTORY , 'client1-AdditionClient.log' ) #NEWLINE# client2_logs = testutilities . get_log_for_test ( 'test_correctness' , client2_log , '12:00:00' ) #NEWLINE# assert ( 'Received: 1' in client2_logs ) , 'Did not receive 1 in client2' #NEWLINE# assert ( 'Received: 3' in client2_logs ) , 'Did not receive 3 in client2' #NEWLINE# assert ( 'Received: 6' in client2_logs ) , 'Did not receive 6 in client2'