#NEWLINE# def test_admin_does_not_own_addon( self ) : #NEWLINE# #INDENT# self . user = UserProfile . objects . create ( read_dev_agreement = datetime . now ( ) ) #NEWLINE# self . api_key = self . create_api_key ( self . user , 'bar' ) #NEWLINE# self . make_admin ( self . user ) #NEWLINE# response = self . put ( self . url ( self . guid , '3.0' ) ) #NEWLINE# assert ( self . status_code == 403 ) #NEWLINE# assert ( response . data [ 'error' ] == 'You do not own this addon.' )