#NEWLINE# def test_default_extensions( self ) : #NEWLINE# #INDENT# uset = UploadSet ( 'files' ) #NEWLINE# uset . _config = Config ( '/uploads' ) #NEWLINE# extpairs = ( ( 'txt' , True ) , ( 'jpg' , True ) , ( 'exe' , False ) ) #NEWLINE# for ( ext , result ) in extpairs : #NEWLINE# #INDENT# assert ( uset . extension_allowed ( ext ) is result )