#NEWLINE# def test_collection( self ) : #NEWLINE# #INDENT# 'Same as src; looking for collection{,_id,_uuid} in request.' #NEWLINE# b = self . get_button ( ) #NEWLINE# assert ( b . collection is None ) #NEWLINE# self . request . GET [ 'collection_uuid' ] = 'aa' #NEWLINE# b = self . get_button ( ) #NEWLINE# assert ( b . collection == 'aa' ) #NEWLINE# self . request . GET [ 'collection_id' ] = 'bb' #NEWLINE# b = self . get_button ( ) #NEWLINE# assert ( b . collection == 'bb' ) #NEWLINE# self . request . GET [ 'collection' ] = 'cc' #NEWLINE# b = self . get_button ( ) #NEWLINE# assert ( b . collection == 'cc' ) #NEWLINE# self . context [ 'collection' ] = 'dd' #NEWLINE# b = self . get_button ( ) #NEWLINE# assert ( b . collection == 'dd' ) #NEWLINE# b = self . get_button ( collection = 'ee' ) #NEWLINE# assert ( b . collection == 'ee' ) #NEWLINE# c = Mock ( ) #NEWLINE# c . uuid = 'ff' #NEWLINE# b = self . get_button ( collection = c ) #NEWLINE# assert ( b . collection == 'ff' )