      url(r'^anchor/(?P<pk>\d+)/$', AnchorDetail.as_view(), name='anchor-detail'),
      url(r'^manytomany/$', ManyToManyList.as_view(), name='manytomanymodel-list'),
      url(r'^manytomany/(?P<pk>\d+)/$', ManyToManyDetail.as_view(), name='manytomanymodel-detail'),
      url(r'^posts/(?P<pk>\d+)/$', BlogPostDetail.as_view(), name='blogpost-detail'),
      url(r'^comments/$', BlogPostCommentListCreate.as_view(), name='blogpostcomment-list')
  )
  
  
  class TestBasicHyperlinkedView(TestCase):
      urls = 'rest_framework.tests.hyperlinkedserializers'
 
</s> remove from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment
 </s> add from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment, Album, Photo
    url(r'^comments/$', BlogPostCommentListCreate.as_view(), name='blogpostcomment-list'),
    url(r'^albums/(?P<title>\w[\w-]*)/$', AlbumDetail.as_view(), name='album-detail'),
    url(r'^photos/$', PhotoListCreate.as_view(), name='photo-list')
      url(r'^anchor/(?P<pk>\d+)/$', AnchorDetail.as_view(), name='anchor-detail'),
      url(r'^manytomany/$', ManyToManyList.as_view(), name='manytomanymodel-list'),
      url(r'^manytomany/(?P<pk>\d+)/$', ManyToManyDetail.as_view(), name='manytomanymodel-detail'),
      url(r'^posts/(?P<pk>\d+)/$', BlogPostDetail.as_view(), name='blogpost-detail'),
    url(r'^comments/$', BlogPostCommentListCreate.as_view(), name='blogpostcomment-list'),
    url(r'^albums/(?P<title>\w[\w-]*)/$', AlbumDetail.as_view(), name='album-detail'),
    url(r'^photos/$', PhotoListCreate.as_view(), name='photo-list')
  )
  
  
  class TestBasicHyperlinkedView(TestCase):
      urls = 'rest_framework.tests.hyperlinkedserializers'
keep keep keep keep replace keep keep keep keep keep
 added testcase for custom slug field in hyperlinkedrelatedfield 
rest_framework/tests/hyperlinkedserializers.py