#NEWLINE# def test_records_are_isolated_by_bucket_and_by_collection( self ) : #NEWLINE# #INDENT# self . app . put_json ( '/buckets/beers/collections/pills' , MINIMALIST_BUCKET , headers = other . headers ) #NEWLINE# other_collection = self . record_url . replace ( 'barley' , 'pills' ) #NEWLINE# self . app . get ( other_collection , headers = self . headers , status = 404 ) #NEWLINE# self . app . put_json ( '/buckets/sodas' , MINIMALIST_BUCKET , headers = self . headers ) #NEWLINE# self . app . put_json ( '/buckets/sodas/collections/barley' , MINIMALIST_COLLECTION , headers = self . headers ) #NEWLINE# other_bucket = self . record_url . replace ( 'beers' , 'sodas' ) #NEWLINE# self . app . get ( other_bucket , headers = self . headers , status = 404 ) #NEWLINE# self . app . put_json ( '/buckets/be' , MINIMALIST_BUCKET , headers = self . headers ) #NEWLINE# self . app . put_json ( '/buckets/be/collections/ba' , MINIMALIST_COLLECTION , headers = self . headers ) #NEWLINE# other = self . record_url . replace ( 'barley' , 'ba' ) . replace ( 'beers' , 'be' ) #NEWLINE# self . app . get ( other , headers = self . headers , status = 404 )