#NEWLINE# def test_put_with_archive( self ) : #NEWLINE# #INDENT# 'Testing the PUT repositories/<id>/ API with archive_name=True' #NEWLINE# self . _login_user ( admin = True ) #NEWLINE# repo_id = self . _put_repository ( False , { #NEWLINE# #INDENT# 'archive_name' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# repo = Repository . objects . get ( pk = repo_id ) #NEWLINE# self . assertEqual ( repo . name [ : 23 ] , 'ar:New Test Repository:' ) #NEWLINE# self . assertTrue ( repo . archived ) #NEWLINE# self . assertFalse ( repo . public ) #NEWLINE# self . assertIsNotNone ( repo . archived_timestamp )