#NEWLINE# def test_flag_must_be_inactive_and_redirect_to_view( self ) : #NEWLINE# #INDENT# resp = self . client . get ( '/flagged_view_with_valid_redirect' ) #NEWLINE# self . assertEqual ( 302 , self . status_code ) #NEWLINE# Flag . objects . create ( name = 'foo' , everyone = True ) #NEWLINE# resp = self . client . get ( '/flagged_view_with_valid_redirect' ) #NEWLINE# self . assertEqual ( 200 , resp . status_code )