#NEWLINE# def test_static_object_detail_redirects_to_correct_url_on_wrong_slug( self ) : #NEWLINE# #INDENT# self . publishable . static = True #NEWLINE# self . publishable . save ( ) #NEWLINE# response = self . client . get ( ( '/nested-category/%d-not-the-first-article/' % self . publishable . id ) ) #NEWLINE# tools . assert_equals ( 301 , response . status_code ) #NEWLINE# tools . assert_equals ( ( 'http://testserver/nested-category/%d-first-article/' % self . publishable . id ) , response [ 'Location' ] )