
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
yb                 @   s2   d dl mZ d dlZddlmZ G dd dZdS )    )TemporaryFileN   )LRUCachec               @   s   e Zd Zdd Zdd ZdS )TestLRUCachec             C   s   t ddd d}xtdD ]\}}|||< qW tjt |d  W d Q R X d|d< |d	= tjt |d	  W d Q R X |j  d S )
Nr   c             S   s   d S )N )_r   r    /usr/lib64/python3.6/lrucache.py<lambda>   s    z,TestLRUCache.test_lrucache.<locals>.<lambda>)disposeabca   dc)r   	enumeratepytestZraisesKeyErrorclear)selfr   ixr   r   r   test_lrucache
   s    zTestLRUCache.test_lrucachec             C   sL   t ddd d}t }t }t }||d< ||d< ||d< |d= |j  d S )Nr   c             S   s   | j  S )N)close)fr   r   r   r	   (   s    z+TestLRUCache.test_dispose.<locals>.<lambda>)r
      r   )r   r   r   )r   r   f1f2Zf3r   r   r   test_dispose'   s    zTestLRUCache.test_disposeN)__name__
__module____qualname__r   r   r   r   r   r   r      s   r   )Ztempfiler   r   Zlrucacher   r   r   r   r   r   <module>   s   