ó
BwLc           @   su   d  Z  d Z d d l Z d d l Z d e j f d     YZ i  d  Z e d k rq d   Z e j	 d	 d
  n  d S(   s?   Self-test for the Crypto.Util.randpool.RandomPool wrapper classs   $Id$i˙˙˙˙Nt
   SimpleTestc           B   s   e  Z d    Z RS(   c         C   s   d d l  m } t j j d  |   } | j d  } | j d  } |  j | |  |  j | j d  | j   | j	 d  | j
 d  d S(   s   Crypto.Util.randpool.RandomPooli˙˙˙˙(   t
   RandomPoolsI   SelfTest: You can ignore the RandomPool_DeprecationWarning that follows.
i   i    t   fooN(   t   Crypto.Util.randpoolR   t   syst   stderrt   writet	   get_bytest   assertNotEqualt   entropyt	   randomizet   stirt	   add_event(   t   selfR   t   rpoolt   xt   y(    (    sK   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_rpoolcompat.pyt   runTest!   s    	
(   t   __name__t
   __module__R   (    (    (    sK   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_rpoolcompat.pyR        s   c         C   s
   t    g S(   N(   R    (   t   config(    (    sK   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_rpoolcompat.pyt	   get_tests0   s    t   __main__c           C   s   t  j t    S(   N(   t   unittestt	   TestSuiteR   (    (    (    sK   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_rpoolcompat.pyt   <lambda>4   s    t   defaultTestt   suite(
   t   __doc__t   __revision__R   R   t   TestCaseR    R   R   R   t   main(    (    (    sK   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_rpoolcompat.pyt   <module>   s   	