aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/serializer.py
diff options
context:
space:
mode:
authorBen Roberts2012-12-05 17:54:21 -0700
committerBen Roberts2012-12-05 17:54:21 -0700
commit7f28a784146b9ba6ab303e79597f85a0f8b1e76e (patch)
tree733650552b18a250dd2556fc1981f2685afde71e /rest_framework/tests/serializer.py
parent705c7ad09db65c6ea6fb69bbd417cb7a45f6e3b9 (diff)
downloaddjango-rest-framework-7f28a784146b9ba6ab303e79597f85a0f8b1e76e.tar.bz2
cleaned up last commit
Diffstat (limited to 'rest_framework/tests/serializer.py')
-rw-r--r--rest_framework/tests/serializer.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/rest_framework/tests/serializer.py b/rest_framework/tests/serializer.py
index af182917..9cedb54b 100644
--- a/rest_framework/tests/serializer.py
+++ b/rest_framework/tests/serializer.py
@@ -3,7 +3,7 @@ from django.test import TestCase
from rest_framework import serializers
from rest_framework.tests.models import (ActionItem, Anchor, BasicModel,
BlankFieldModel, BlogPost, Book, CallableDefaultValueModel, DefaultValueModel,
- ManyToManyModel, Person, ReadOnlyManyToManyModel, BlogPostComment)
+ ManyToManyModel, Person, ReadOnlyManyToManyModel)
class SubComment(object):
@@ -643,27 +643,6 @@ class BlankFieldTests(TestCase):
self.assertEquals(serializer.is_valid(), False)
-#class PersonGroup(object):
-# name = "group"
-# persons = [Person(name="joe"), Person(name="job")]
-#
-#class PersonGroupSerializer(serializers.Serializer):
-# name = serializers.CharField()
-# persons = PersonSerializer()
-#
-#class BlogPostSerializer(serializers.ModelSerializer):
-# class Meta:
-# model = BlogPost
-#
-#
-#class BlogPostCommentSerializer(serializers.ModelSerializer):
-# class Meta:
-# model = BlogPostComment
-# fields = ('text', 'blog_post')
-#
-# blog_post = BlogPostSerializer()
-#
-
#test for issue #460
class SerializerPickleTests(TestCase):
""" Test pickleability of the output of Serializers