#NEWLINE# def test_nested_parent( self ) : #NEWLINE# #INDENT# self . assertEqual ( self . detail_router . parent_regex , 'detail/(?P<detail_pk>[^/.]+)/' ) #NEWLINE# urls = map_by_name ( self . detail_router . urls ) #NEWLINE# self . assertEquals ( urls [ 'basicmodel-list' ] . regex . pattern , '^detail/(?P<detail_pk>[^/.]+)/list/$' ) #NEWLINE# self . assertEquals ( urls [ 'basicmodel-recent-users' ] . regex . pattern , '^detail/(?P<detail_pk>[^/.]+)/list/recent_users/$' ) #NEWLINE# self . assertEquals ( urls [ 'basicmodel-detail' ] . regex . pattern , '^detail/(?P<detail_pk>[^/.]+)/list/(?P<pk>[^/.]+)/$' )