def _verify_nxapi_results(self, driver_result):
self.assertEqual(<EOL>len(driver_result),<EOL>self.mock_nxapi_client.rest_post.call_count,<EOL>"<STR_LIT>")<EOL>for idx in range(<NUM_LIT:0>, len(driver_result)):<EOL><INDENT>if not driver_result[idx]:<EOL><INDENT>continue<EOL><DEDENT>self.assertTrue(<EOL>(driver_result[idx][<NUM_LIT:0>] ==<EOL>self.mock_nxapi_client.rest_post.mock_calls[idx][<NUM_LIT:1>][<NUM_LIT:0>]),<EOL>"<STR_LIT>")<EOL>if driver_result[idx][<NUM_LIT:1>] is not None:<EOL><INDENT>self.assertTrue(<EOL>(driver_result[idx][<NUM_LIT:1>] ==<EOL>self.mock_nxapi_client.<EOL>rest_post.mock_calls[idx][<NUM_LIT:1>][<NUM_LIT:1>]),<EOL>"<STR_LIT>")<EOL><DEDENT>self.assertIsNotNone(<EOL>self.mock_nxapi_client.rest_post.mock_calls[idx][<NUM_LIT:1>][<NUM_LIT:2>],<EOL>"<STR_LIT>")<EOL>self.assertIsNotNone(<EOL>re.search(driver_result[idx][<NUM_LIT:2>],<EOL>self.mock_nxapi_client.rest_post.mock_calls[idx][<NUM_LIT:1>][<NUM_LIT:2>]),<EOL>"<STR_LIT>")<EOL><DEDENT>
Verifies correct NXAPI entries sent to Nexus.