  from django.conf.urls.defaults import patterns, url
  from django.test import TestCase
  from django.test.client import RequestFactory
  from rest_framework import generics, status, serializers
  from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment
  
  factory = RequestFactory()
  
  
  class BlogPostCommentSerializer(serializers.Serializer):
 
</s> remove     url(r'^comments/$', BlogPostCommentListCreate.as_view(), name='blogpostcomment-list')
 </s> add     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')
from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment, Album, Photo
  from django.conf.urls.defaults import patterns, url
  from django.test import TestCase
  from django.test.client import RequestFactory
  from rest_framework import generics, status, serializers
from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment, Album, Photo
  
  factory = RequestFactory()
  
  
  class BlogPostCommentSerializer(serializers.Serializer):
keep keep keep keep replace keep keep keep keep keep
 added testcase for custom slug field in hyperlinkedrelatedfield 
rest_framework/tests/hyperlinkedserializers.py