Your IP : 216.73.216.213
��Yf| � @ sW d d l Z d d l Z d d l Z Gd d � d e j � Z e d k rS e j � d S)� Nc @ s� e Z d Z d d � Z d d � Z d d � Z d d � Z d d
� Z d d � Z d
d � Z d d � Z
d d � Z d d � Z d d � Z
d d � Z d S)�
StructSeqTestc C s� t j � } | j | t � t | � } | j t | � t | � � | j | | � x� t t | � t | � � D]u } | j | | d � | | d � � xH t t | � t | � � D]* } | j | | | � | | | � � q� Wqq WxH t t | � t | � � D]* } | j | d | � | d | � � qW| j t | j t | � d � | j t | j t | � � x@ t t | � t | � d � D] } | j | | | | � q�Wd S)N� )
�time�gmtimeZassertIsInstance�tuple�assertEqual�len�range�assertRaises�
IndexError�__getitem__)�self�tZastuple�i�j� r �8/opt/alt/python35/lib64/python3.5/test/test_structseq.py�
test_tuple s #$#,#(!'zStructSeqTest.test_tuplec C s� t j � } | j t | � � t j d � } | j t | � d � t j t � } t | � } | j | j d � � | j d | � | j d | � | j d | � d S)Nr zttime.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)zos.stat_resultzst_mode=zst_ino=zst_dev=)
r r �
assertTrue�reprr �os�stat�__file__�
startswith�assertIn)r
r �stZrepr r r � test_repr s zStructSeqTest.test_reprc C s_ t j � } | t | � } x<