#NEWLINE# def test_can_suspend_an_offer( self ) : #NEWLINE# #INDENT# offer = factories . create_offer ( ) #NEWLINE# self . assertFalse ( offer . is_suspended ) #NEWLINE# detail_page = self . get ( reverse ( 'dashboard:offer-detail' , kwargs = { #NEWLINE# #INDENT# 'pk' : detail_page . pk , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# form = detail_page . forms [ 'status_form' ] #NEWLINE# form . submit ( 'suspend' ) #NEWLINE# reloaded_offer = models . ConditionalOffer . objects . get ( pk = offer . pk ) #NEWLINE# self . assertTrue ( reloaded_offer . is_suspended )