Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
joblib
/
test
/
__pycache__
/
File Content:
test_disk.cpython-35.pyc
���W� � @ s� d Z d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l Z d d l m Z m Z m Z d d � Z d d � Z d d � Z d S)z$ Unit tests for the disk utilities. � )�with_statementN)�mkdtemp)� disk_used�memstr_to_bytes�mkdirpc C s t � } z� t j j | � r+ t j | � t j | � t j d � } | j } d } t | d | � } t j d | d � } t t j j | d � d � � } | j | � Wd QRXt j j t | � | k � t j j t | � | d k � Wd t j | � Xd S)N�ii � �test�wb� )r )r �os�path�exists�shutil�rmtree�mkdir�array�itemsize�int�open�join�tofile�nose�toolsZassert_truer )Zcachedir�aZsizeof_iZtarget_size�n�output� r � /test_disk.py�test_disk_used s !$r c c sf xI t d d t d � d d f � D]&