mς
­fIc           @   sm   d  Z  d k l Z d k Z d k l Z l Z d e i f d     YZ d   Z e	 d j o e   n d S(   s"   Test cases for the fnmatch module.(   s   test_supportN(   s   fnmatchs   fnmatchcaset   FnmatchTestCasec           B   s   t  Z d d  Z d   Z RS(   Ni   c         C   sV   | o' |  i t | |  d | | f  n% |  i t | |  d | | f  d  S(   Ns   expected %r to match pattern %rs#   expected %r not to match pattern %r(   t   should_matcht   selft   assert_t   fnmatcht   filenamet   pattern(   R   R   R   R   (    (    t.   /mit/python/lib/python2.4/test/test_fnmatch.pyt   check_match
   s
    c         C   sΟ   |  i } | d d  | d d  | d d  | d d  | d d  | d d  | d d  | d d  | d d	 d
  | d d d
  | d d d
  | d d  | d d  | d d d
  d  S(   Nt   abcs   ?*?s   ???*s   *???s   ???t   *s   ab[cd]s   ab[!de]s   ab[de]i    t   as   ??t   bs   \s   [\]s   [!\](   R   R   t   check(   R   R   (    (    R   t   test_fnmatch   s    	(   t   __name__t
   __module__R   R   (    (    (    R   R    	   s   
c           C   s   t  i t  d  S(   N(   t   test_supportt   run_unittestR    (    (    (    R   t	   test_main)   s    t   __main__(
   t   __doc__t   testR   t   unittestR   t   fnmatchcaset   TestCaseR    R   R   (   R   R   R   R   R   R    (    (    R   t   ?   s   	 	