ó
BwLc           @   si   d  Z  d Z d d l Z d e j f d „  ƒ  YZ i  d „ Z e d k re d „  Z e j d	 d
 ƒ n  d S(   s'   Self-test suite for Crypto.Random.new()s   $Id$iÿÿÿÿNt
   SimpleTestc           B   s   e  Z d  „  Z RS(   c         C   s}   d d l  m } | j ƒ  } | j d ƒ } | j d ƒ } |  j | | ƒ | j d ƒ } |  j | | ƒ |  j | | ƒ d S(   s   Crypto.Random.new()iÿÿÿÿ(   t   Randomi   N(   t   CryptoR   t   newt   readt   assertNotEqualt   get_random_bytes(   t   selfR   t   randobjt   xt   yt   z(    (    sF   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_random.pyt   runTest    s    (   t   __name__t
   __module__R   (    (    (    sF   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_random.pyR       s   c         C   s
   t  ƒ  g S(   N(   R    (   t   config(    (    sF   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_random.pyt	   get_tests,   s    t   __main__c           C   s   t  j t ƒ  ƒ S(   N(   t   unittestt	   TestSuiteR   (    (    (    sF   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_random.pyt   <lambda>0   s    t   defaultTestt   suite(	   t   __doc__t   __revision__R   t   TestCaseR    R   R   R   t   main(    (    (    sF   /usr/lib/python2.7/dist-packages/Crypto/SelfTest/Random/test_random.pyt   <module>   s   	