#NEWLINE# def test_public_exceptions( self ) : #NEWLINE# #INDENT# page_a = create_page ( 'page_a' , 'nav_playground.html' , 'en' , published = True ) #NEWLINE# page_b = create_page ( 'page_b' , 'nav_playground.html' , 'en' ) #NEWLINE# page = page_a . publisher_public #NEWLINE# self . assertRaises ( PublicIsUnmodifiable , page . copy_page , 3 , 1 ) #NEWLINE# self . assertRaises ( PublicIsUnmodifiable , page . unpublish , 'en' ) #NEWLINE# self . assertRaises ( PublicIsUnmodifiable , page . revert , 'en' ) #NEWLINE# self . assertRaises ( PublicIsUnmodifiable , page . publish , 'en' ) #NEWLINE# self . assertTrue ( page . get_draft_object ( ) . publisher_is_draft ) #NEWLINE# self . assertRaises ( PublicVersionNeeded , page_b . revert , 'en' )