+
    Hwi                         R t ^ RIHtHt ^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHtHt  ! R R]4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )z"
Tests for L{incremental.update}.
)divisionabsolute_importN)FilePath)NativeStringIO)TestCase)_runrunc                   ,   a  ] tR t^t o R tR tRtV tR# )NonCreatedUpdateTestsc                h  a  \        S P                  4       4      S n        S P                  P                  4        S P                  P	                  R 4      pVP                  4        VP	                  R4      P                  R4       V 3R lS n        VS n         ! R R\        4      pV! 4       S n	        R# )
inctestpkg__init__.py   
from incremental import Version
introduced_in = Version("inctestpkg", "NEXT", 0, 0).short()
next_released_version = "inctestpkg NEXT"
c                  0   < S P                   P                  # Nsrcdirpathselfs   ?/usr/lib/python3/dist-packages/incremental/tests/test_update.py<lambda>-NonCreatedUpdateTests.setUp.<locals>.<lambda>$       dkk..    c                       ] tR t^'tRt^tRtR# ))NonCreatedUpdateTests.setUp.<locals>.Date   N__name__
__module____qualname____firstlineno__yearmonth__static_attributes__r   r   r   Dater   '       DEr   r'   N
r   mktempr   makedirschild
setContentgetcwd
packagedirobjectdater   r/   r'   s   f  r   setUpNonCreatedUpdateTests.setUp   s    t{{}-[[&&|4
'22	
 /$	6 	 F	r   c                   V P                  V P                  P                  R4      P                  4       4       . p\	        RRRRRRRRV P
                  V P                  VP                  R7       V P                  V P                  P                  R4      P                  4       4       V P                  V P                  P                  R4      P                  4       R4       R# )z@
`incremental.update package --create` initialises the version.
_version.pyr   NFT
r   
newversionpatchrcpostdevcreate_date_getcwd_print  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 16, 8, 0)
__all__ = ["__version__"]
)assertFalser/   r,   existsr   r1   r.   append
assertTrueassertEqual
getContentr   outs   & r   test_create!NonCreatedUpdateTests.test_create-   s     	..}=DDFG))KK::	
 	--m<CCEFOO!!-0;;=	
r   r1   r.   r/   r   N)r    r!   r"   r#   r3   rJ   r&   __classdictcell____classdict__s   @r   r
   r
      s     .$
 $
r   r
   c                   ,   a  ] tR t^Tt o R tR tRtV tR# )MissingTestsc                  a  \        S P                  4       4      S n        S P                  P                  4        S P                  P	                  R 4      P                  4        S P                  P	                  R 4      P	                  R4      pVP                  4        VP	                  R4      P                  R4       VP	                  R4      P                  R4       V 3R lS n        VS n         ! R R\        4      pV! 4       S n	        R	# )
srcar   r   r   r6   h   
from incremental import Version
__version__ = Version("inctestpkg", 1, 2, 3)
__all__ = ["__version__"]
c                  0   < S P                   P                  # r   r   r   s   r   r   $MissingTests.setUp.<locals>.<lambda>l   r   r   c                       ] tR t^otRt^tRtR# ) MissingTests.setUp.<locals>.Dater   r   Nr   r   r   r   r'   rX   o   r(   r   r'   Nr)   r2   s   f  r   r3   MissingTests.setUpU   s    t{{}-&!**,[[&&v.44\B
'22	
 	'22	
 /$	6 	 F	r   c                    . pV P                  \        4      ;_uu_ 4        \        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       R#   + '       g   i     R# ; i)zS
`incremental.update package --dev` raises and quits if it can't find
the package.
r   NFTr7   )assertRaises
ValueErrorr   r1   r.   rD   rH   s   & r   	test_pathMissingTests.test_pathu   s^    
 z**iizz +***s   5AA0	rL   Nr    r!   r"   r#   r3   r]   r&   rM   rN   s   @r   rQ   rQ   T   s     @ r   rQ   c                   ,   a  ] tR t^t o R tR tRtV tR# )CreatedUpdateInSrcTestsc                  a  \        S P                  4       4      S n        S P                  P                  4        S P                  P	                  R 4      P                  4        S P                  P	                  R 4      P	                  R4      pVP                  4        VP	                  R4      P                  R4       VP	                  R4      P                  R4       V 3R lS n        VS n         ! R R\        4      pV! 4       S n	        R	# )
srcr   r   r   r6   rT   c                  0   < S P                   P                  # r   r   r   s   r   r   /CreatedUpdateInSrcTests.setUp.<locals>.<lambda>   r   r   c                       ] tR t^tRt^tRtR# )+CreatedUpdateInSrcTests.setUp.<locals>.Dater   r   Nr   r   r   r   r'   rg      r(   r   r'   Nr)   r2   s   f  r   r3   CreatedUpdateInSrcTests.setUp   s    t{{}-% ))+[[&&u-33LA
'22	
 	'22	
 /$	6 	 F	r   c                   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       4       V P                  V P
                  P                  R4      P                  4       R4       \        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       4       V P                  V P
                  P                  R4      P                  4       R4       R# )	n
`incremental.update package --path=<path> --dev` increments the dev
version of the package on the given path
r   NFTr7   r6     """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 3, dev=0)
__all__ = ["__version__"]
s  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 3, dev=1)
__all__ = ["__version__"]

r   r1   r.   rD   rE   r/   r,   rC   rF   rG   rH   s   & r   r]   !CreatedUpdateInSrcTests.test_path   s   
 ))KK::	
 	--m<CCEFOO!!-0;;=	
  	))KK::	
 	--m<CCEFOO!!-0;;=	
r   rL   Nr_   rN   s   @r   ra   ra      s     @B
 B
r   ra   c                      a  ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tR tR tRtV tR# )CreatedUpdateTestsNc                  a  \        S P                  4       4      S n        S P                  P                  4        S P                  P	                  R 4      pVP                  4        VP	                  R4      P                  R4       VP	                  R4      P                  R4       V 3R lS n        VS n         ! R R\        4      pV! 4       S n	        R# )	r   r   r   r6   rT   c                  0   < S P                   P                  # r   r   r   s   r   r   *CreatedUpdateTests.setUp.<locals>.<lambda>	  r   r   c                       ] tR tRtRt^tRtR# )&CreatedUpdateTests.setUp.<locals>.Datei  r   r   Nr   r   r   r   r'   rt     r(   r   r'   Nr)   r2   s   f  r   r3   CreatedUpdateTests.setUp   s    t{{}-[[&&|4
'22	
 	'22	
 /$	6 	 F	r   c                f   . p\        RV P                  P                  RRRRRRV P                  VP                  R7
       V P                  V P                  P                  R4      P                  4       4       V P                  V P                  P                  R4      P                  4       R4       R# )rj   r   NFT)	r   r8   r9   r:   r;   r<   r=   r>   r@   r6   rk   )
r   r/   r   r1   rD   rE   r,   rC   rF   rG   rH   s   & r   r]   CreatedUpdateTests.test_path  s    
 %%))::	
 	--m<CCEFOO!!-0;;=	
r   c                T   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       4       V P                  V P
                  P                  R4      P                  4       R4       R# )z@
`incremental.update package --dev` increments the dev version.
r   NFTr7   r6   rk   rl   rH   s   & r   test_devCreatedUpdateTests.test_dev6  s     ))KK::	
 	--m<CCEFOO!!-0;;=	
r   c                V   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R4       V P	                  V P
                  P                  R4      P                  4       R	4       R# )
zD
`incremental.update package --patch` increments the patch version.
r   NTFr7   r6     """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 4)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 2, 4).short()
next_released_version = "inctestpkg 1.2.4"
r   r1   r.   rD   rF   r/   r,   rG   rH   s   & r   
test_patchCreatedUpdateTests.test_patchZ  s     ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                8   V P                   P                  R4      P                  R4       . p\        RRRRRRRRV P                  V P
                  VP                  R7       V P                  V P                   P                  R4      P                  4       R4       R# )	zt
`incremental.update package --patch` increments the patch version, and
disregards any old prerelease/dev versions.
r6      
from incremental import Version
__version__ = Version("inctestpkg", 1, 2, 3, release_candidate=1, dev=2)
__all__ = ["__version__"]
r   NTFr7   r|   	r/   r,   r-   r   r1   r.   rD   rF   rG   rH   s   & r   "test_patch_with_prerelease_and_dev5CreatedUpdateTests.test_patch_with_prerelease_and_dev  s    
 	m,77	
 ))KK::	
 	OO!!-0;;=	
r   c                V   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R4       V P	                  V P
                  P                  R4      P                  4       R	4       R# )
zj
`incremental.update package --patch --rc` increments the patch
version and makes it a release candidate.
r   NTFr7   r6   s!  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 4, release_candidate=1)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 2, 4, release_candidate=1).short()
next_released_version = "inctestpkg 1.2.4rc1"
r}   rH   s   & r   test_rc_patch CreatedUpdateTests.test_rc_patch  s    
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                   V P                   P                  R4      P                  R4       . p\        RRRRRRRRV P                  V P
                  VP                  R7       V P                  V P                   P                  R4      P                  4       R4       V P                  V P                   P                  R	4      P                  4       R
4       R# )z}
`incremental.update package --rc` increments the rc version if the
existing version is an rc, and discards any dev version.
r6   r   r   NFTr7   s!  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 3, release_candidate=2)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 2, 3, release_candidate=2).short()
next_released_version = "inctestpkg 1.2.3rc2"
r   rH   s   & r   test_rc_with_existing_rc+CreatedUpdateTests.test_rc_with_existing_rc  s    
 	m,77	
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                   V P                   P                  R4      P                  R4       . p\        RRRRRRRRV P                  V P
                  VP                  R7       V P                  V P                   P                  R4      P                  4       R4       V P                  V P                   P                  R	4      P                  4       R
4       R# )z
`incremental.update package --rc`, when the package is not a release
candidate, will issue a new major/minor rc, and disregards the micro
and dev.
r6   so   
from incremental import Version
__version__ = Version("inctestpkg", 1, 2, 3, dev=2)
__all__ = ["__version__"]
r   NFTr7   "  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 16, 8, 0, release_candidate=1)
__all__ = ["__version__"]
r      
from incremental import Version
introduced_in = Version("inctestpkg", 16, 8, 0, release_candidate=1).short()
next_released_version = "inctestpkg 16.8.0rc1"
r   rH   s   & r   test_rc_with_no_rc%CreatedUpdateTests.test_rc_with_no_rc  s     	m,77	
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R4       V P	                  V P
                  P                  R4      P                  4       R	4       \        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R
4       V P	                  V P
                  P                  R4      P                  4       R4       R# )z
`incremental.update package`, when the package is a release
candidate, will issue the major/minor, sans release candidate or dev.
r   NFTr7   r6   r   r   r   rA   s   
from incremental import Version
introduced_in = Version("inctestpkg", 16, 8, 0).short()
next_released_version = "inctestpkg 16.8.0"
r}   rH   s   & r   test_full_with_rc$CreatedUpdateTests.test_full_with_rcF  s5   
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
 	))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                >   . pV P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  XP                  P                  ^ ,          R4       R#   + '       g   i     L?; i)za
`incremental.update package`, when the package is NOT a release
candidate, will raise an error.
r   NFr7   z6You need to issue a rc before updating the major/minor	r[   r\   r   r1   r.   rD   rF   	exceptionargsr   rI   es   &  r   test_full_without_rc'CreatedUpdateTests.test_full_without_rc  s    
 z**aiizz + 	KKQD	
 +*s   5BB	c                T   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       4       V P                  V P
                  P                  R4      P                  4       R4       R# )zB
`incremental.update package --post` increments the post version.
r   NFTr7   r6     """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 3, post=0)
__all__ = ["__version__"]
rl   rH   s   & r   	test_postCreatedUpdateTests.test_post  s     ))KK::	
 	--m<CCEFOO!!-0;;=	
r   c                8   V P                   P                  R4      P                  R4       . p\        RRRRRRRRV P                  V P
                  VP                  R7       V P                  V P                   P                  R4      P                  4       R4       R# )	zr
`incremental.update package --post` increments the post version, and
disregards any old prerelease/dev versions.
r6   r   r   NFTr7   r   r   rH   s   & r   !test_post_with_prerelease_and_dev4CreatedUpdateTests.test_post_with_prerelease_and_dev  s    
 	m,77	
 ))KK::	
 	OO!!-0;;=	
r   c                   V P                   P                  R4      P                  R4       . p\        RRRRRRRRV P                  V P
                  VP                  R7       V P                  V P                   P                  R4      P                  4       R4       V P                  V P                   P                  R	4      P                  4       R
4       R# )z
`incremental.update package --post` increments the post version if the
existing version is an postrelease, and discards any dev version.
r6   sw   
from incremental import Version
__version__ = Version("inctestpkg", 1, 2, 3, post=1, dev=2)
__all__ = ["__version__"]
r   NFTr7   s  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 3, post=2)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 2, 3, post=2).short()
next_released_version = "inctestpkg 1.2.3.post2"
r   rH   s   & r   test_post_with_existing_post/CreatedUpdateTests.test_post_with_existing_post  s    
 	m,77	
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                   . pV P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  XP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       R#   + '       g   i     EL; i  + '       g   i     ELb; i  + '       g   i     L; i  + '       g   i     Lz; i)zN
The `--newversion` flag can't be mixed with --patch, --rc, --post,
or --dev.
r   N1TFr7   zOnly give --newversionr   r   s   &  r   test_no_mix_newversion)CreatedUpdateTests.test_no_mix_newversion6  s   
 z**aiizz + 	))!,.FGz**aiizz + 	))!,.FGz**aiizz + 	))!,.FGz**aiizz + 	))!,.FG} +**  +**  +*  +*s/   5H!'5H5.5I	55I!H2	5I		I	I,	c                   . pV P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  XP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       R#   + '       g   i     ELN; i  + '       g   i     L; i  + '       g   i     Lf; i)z@
The `--dev` flag can't be mixed with --patch, --rc, or --post.
r   NTFr7   zOnly give --devr   r   s   &  r   test_no_mix_dev"CreatedUpdateTests.test_no_mix_dev|  su    z**aiizz + 	))!,.?@z**aiizz + 	))!,.?@z**aiizz + 	))!,.?@] +**  +*  +*s#   5F'5F..5GF+	.F>	G	c                   . pV P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  XP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4       p\        RRRRRRRRV P                  V P                  VP
                  R7       RRR4       V P                  VP                  P                  ^ ,          R4       R#   + '       g   i     EL\; i  + '       g   i     EL; i  + '       g   i     ELv; i  + '       g   i     EL; i  + '       g   i     L; i)zX
The `--create` flag can't be mixed with --patch, --rc, --post,
--dev, or --newversion.
r   NTFr7   zOnly give --creater   r   r   s   &  r   test_no_mix_create%CreatedUpdateTests.test_no_mix_create  sn   
 z**aiizz + 	))!,.BCz**aiizz + 	))!,.BCz**aiizz + 	))!,.BCz**aiizz + 	))!,.BCz**aiizz + 	))!,.BC] +**  +**  +**  +**  +*s;   5J('5J<.5K55K$<5K8(J9	<K	K!	$K5	8L	c                V   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R4       V P	                  V P
                  P                  R4      P                  4       R	4       R# )
zf
`incremental.update package --newversion=1.2.3rc1.post2.dev3`, will
set that version in the package.
r   Nz1.2.3rc1.post2.dev3Fr7   r6   s0  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 2, 3, release_candidate=1, post=2, dev=3)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 2, 3, release_candidate=1, post=2, dev=3).short()
next_released_version = "inctestpkg 1.2.3rc1.post2.dev3"
r}   rH   s   & r   test_newversion"CreatedUpdateTests.test_newversion  s    
 ,))KK::	
 	OO!!-0;;=	
  	OO!!-0;;=
	
r   c                V   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R4       V P	                  V P
                  P                  R4      P                  4       R	4       R# )
zT
`incremental.update package --newversion=1`, will set that
version in the package.
r   Nr   Fr7   r6   s  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 0, 0)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 0, 0).short()
next_released_version = "inctestpkg 1.0.0"
r}   rH   s   & r   test_newversion_bare'CreatedUpdateTests.test_newversion_bare7  s    
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   c                V   . p\        RRRRRRRRV P                  V P                  VP                  R7       V P	                  V P
                  P                  R4      P                  4       R4       V P	                  V P
                  P                  R4      P                  4       R	4       R# )
zV
`incremental.update package --newversion=1.1`, will set that
version in the package.
r   Nz1.1Fr7   r6   s  """
Provides inctestpkg version information.
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update inctestpkg` to change this file.

from incremental import Version

__version__ = Version("inctestpkg", 1, 1, 0)
__all__ = ["__version__"]
r   s   
from incremental import Version
introduced_in = Version("inctestpkg", 1, 1, 0).short()
next_released_version = "inctestpkg 1.1.0"
r}   rH   s   & r    test_newversion_bare_major_minor3CreatedUpdateTests.test_newversion_bare_major_minorc  s    
 ))KK::	
 	OO!!-0;;=	
 	OO!!-0;;=	
r   rL   )r    r!   r"   r#   maxDiffr3   r]   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r&   rM   rN   s   @r   ro   ro      s     G<"
H"
H)
V*
X*
X2
h3
jP
d
4"
H*
X2
hDHL3AjTDl.
`*
X*
 *
r   ro   c                   2   a  ] tR tRt o R tR tR tRtV tR# )ScriptTestsi  c                >  a a \        S P                  4       4      S n        S P                  P                  4        S P                  P	                  R 4      P                  4        S P                  P	                  R 4      P	                  R4      pVP                  4        VP	                  R4      P                  R4       VP	                  R4      P                  R4       V 3R lS n        VS n         ! R R\        4      o ! V3R	 lR
\        4      pV! 4       S n	        R# )rc   r   r   r   r6   rT   c                  0   < S P                   P                  # r   r   r   s   r   r   #ScriptTests.setUp.<locals>.<lambda>  r   r   c                       ] tR tRtRt^tRtR# )ScriptTests.setUp.<locals>.Datei  r   r   Nr   r   r   r   r'   r     r(   r   r'   c                   .   <a  ] tR tRt o V3R ltRtV tR# )%ScriptTests.setUp.<locals>.DateModulei  c                   < S! 4       # r   r   )r   r'   s   &r   today+ScriptTests.setUp.<locals>.DateModule.today  s
    vr   r   N)r    r!   r"   r#   r   r&   rM   )rO   r'   s   @r   
DateModuler     s      r   r   Nr)   )r   r/   r   r'   s   f  @r   r3   ScriptTests.setUp  s    t{{}-% ))+[[&&u-33LA
'22	
 	'22	
 /$	6 		 	 L	r   c                l   \        4       pV P                  \        RV4       V P                  \        4      ;_uu_ 4       p\        R.4       RRR4       V P                  XP                  P                  ^ ,          ^ 4       V P                  RVP                  4       4       R#   + '       g   i     L_; i)9
Calling run() with no args will cause it to print help.
stdoutz--helpNzShow this message and exit)r   r9   sysr[   
SystemExitr   rF   r   r   assertIngetvaluer   stringior   s   &  r   test_runScriptTests.test_run  s     "#

3(+z**a
O + 	))!,a02H4E4E4GH	 +*s   B##B3	c                   \        4       pV P                  \        RV4       V P                  \        RV P                  4       V P                  \
        RV P                  4       V P                  \        4      ;_uu_ 4       p\        RR.4       RRR4       V P                  XP                  P                  ^ ,          ^ 4       V P                  RVP                  4       4       V P                  V P                  P!                  R4      P#                  4       R	4       V P                  V P                  P!                  R
4      P#                  4       R4       R#   + '       g   i     L; i)r   r   r.   r1   r   z--rcNzUpdating codebaser6   r   r   r   )r   r9   r   osr.   datetimer1   r[   r   r   rF   r   r   r   r   r/   r,   rG   r   s   &  r   test_insufficient_args"ScriptTests.test_insufficient_args  s	    "#

3(+

2x-

8VTYY/z**av&' + 	))!,a0)8+<+<+>?OO!!-0;;=	
 	OO!!-0;;=	
+ +*s   EE(	rL   N)	r    r!   r"   r#   r3   r   r   r&   rM   rN   s   @r   r   r     s     "!HI%
 %
r   r   )__doc__
__future__r   r   r   r   r   twisted.python.filepathr   twisted.python.compatr   twisted.trial.unittestr   incremental.updater   r   r
   rQ   ra   ro   r   r   r   r   <module>r      sj    1 
 	  , 0 + (<
H <
~48 4nc
h c
L\
 \
~W
( W
r   