#NEWLINE# def test_modal_form_mixin_hide_true_if_ajax( self ) : #NEWLINE# #INDENT# view = self . _prepare_view ( forms . views . ModalFormView , dict ( HTTP_X_REQUESTED_WITH = 'XMLHttpRequest' ) ) #NEWLINE# context = view . get_context_data ( ) #NEWLINE# self . assertTrue ( self [ 'hide' ] )