#NEWLINE# def test_mark_accepted( self ) : #NEWLINE# #INDENT# new_user = User . objects . create_user ( 'test' , 'test@example.com' , 'test' ) #NEWLINE# pk = new_user . invitation . pk #NEWLINE# self . invitation . mark_accepted ( new_user ) #NEWLINE# self . assertRaises ( Invitation . DoesNotExist , Invitation . objects . get , pk = pk )