def no_such_executable_logged(case, logger):
 assertHasMessage(case, logger, ZFS_ERROR, {'status': 1, 'zfs_command': 'nonsense garbage made up no such command', 'output': '[Errno 2] No such file or directory'})
 case.assertEqual(len(LoggedMessage.ofType(logger.messages, ZFS_ERROR)), 1)

def no_such_executable_logged ( case , logger ) : assertHasMessage ( case , logger , ZFS_ERROR , { 'status' : 1 , 'zfs_command' : 'nonsense garbage made up no such command' , 'output' : '[Errno 2] No such file or directory' } ) case . assertEqual ( len ( LoggedMessage . ofType ( logger . messages , ZFS_ERROR ) ) , 1 )
validate the error logging behavior of _sync_command_error_squashed .