#NEWLINE# def test_object_detail( self ) : #NEWLINE# #INDENT# response = self . client . get ( '/nested-category/2008/1/10/first-article/' ) #NEWLINE# tools . assert_true ( ( 'category' in response . context ) ) #NEWLINE# tools . assert_equals ( response . publishable . category , response . context [ 'category' ] ) #NEWLINE# tools . assert_true ( ( 'object' in response . context ) ) #NEWLINE# tools . assert_equals ( self . publishable , response . context [ 'object' ] ) #NEWLINE# tools . assert_true ( ( 'content_type' in response . context ) ) #NEWLINE# tools . assert_equals ( ContentType . objects . get_for_model ( self . publishable ) , response . context [ 'content_type' ] ) #NEWLINE# tools . assert_true ( ( 'content_type_name' in response . context ) ) #NEWLINE# tools . assert_equals ( slugify ( self . publishable . _meta . verbose_name_plural ) , response . context [ 'content_type_name' ] )