#NEWLINE# def test_inline_change_m2m_add_perm( self ) : #NEWLINE# #INDENT# permission = Permission . objects . get ( codename = 'add_book' , content_type = response . book_ct ) #NEWLINE# self . user . user_permissions . add ( permission ) #NEWLINE# response = self . client . get ( self . author_change_url ) #NEWLINE# self . assertNotContains ( response , '<h2>Author-book relationships</h2>' ) #NEWLINE# self . assertNotContains ( response , 'Add another Author-Book Relationship' ) #NEWLINE# self . assertNotContains ( response , 'id="id_Author_books-TOTAL_FORMS"' ) #NEWLINE# self . assertNotContains ( response , 'id="id_Author_books-0-DELETE"' )