Current File : //opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyo |
�
��Wc @ s� d Z d d l Z d d l Z d d l m Z m Z m Z m Z d d l m Z d e j
f d � � YZ d � Z e
d k r� e j � n d S( s Unit tests for numbers.py.i����N( t Complext Realt Rationalt Integral( t test_supportt TestNumbersc B s, e Z d � Z d � Z d � Z d � Z RS( c C s� | j t t t � � | j t t t � � | j d t d � j � | j d t d � j � | j d t d � j � � | j d t d � j � | j d t d � j
� d S( Ni i i ( t
assertTruet
issubclasst intR R t assertEqualt realt imagt conjugatet numeratort denominator( t self( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyt test_int s c C s� | j t t t � � | j t t t � � | j d t d � j � | j d t d � j � | j d t d � j � � | j d t d � j � | j d t d � j
� d S( Ni i i ( R R t longR R R R
R R R
R ( R ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyt test_long s c C s~ | j t t t � � | j t t t � � | j d t d � j � | j d t d � j � | j d t d � j � � d S( Ng333333@i (
t assertFalseR t floatR R R R R
R R ( R ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyt
test_float s
c C s� | j t t t � � | j t t t � � t d d � t d d � } } | j t t j | � | j t
t | � | j t
t | � d S( Ni i i i (
R R t complexR R R t assertRaisest AttributeErrort matht trunct TypeErrorR R ( R t c1t c2( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyt test_complex% s ( t __name__t
__module__R R R R ( ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyR s
c C s t j t � d S( N( R t run_unittestR ( ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_abstract_numbers.pyt test_main/ s t __main__( t __doc__R t unittestt numbersR R R R t testR t TestCaseR R"