cleaned up last commit

This commit is contained in:
Ben Roberts 2012-12-05 17:54:21 -07:00
parent 705c7ad09d
commit 7f28a78414

View File

@ -3,7 +3,7 @@ from django.test import TestCase
from rest_framework import serializers from rest_framework import serializers
from rest_framework.tests.models import (ActionItem, Anchor, BasicModel, from rest_framework.tests.models import (ActionItem, Anchor, BasicModel,
BlankFieldModel, BlogPost, Book, CallableDefaultValueModel, DefaultValueModel, BlankFieldModel, BlogPost, Book, CallableDefaultValueModel, DefaultValueModel,
ManyToManyModel, Person, ReadOnlyManyToManyModel, BlogPostComment) ManyToManyModel, Person, ReadOnlyManyToManyModel)
class SubComment(object): class SubComment(object):
@ -643,27 +643,6 @@ class BlankFieldTests(TestCase):
self.assertEquals(serializer.is_valid(), False) 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 #test for issue #460
class SerializerPickleTests(TestCase): class SerializerPickleTests(TestCase):
""" Test pickleability of the output of Serializers """ Test pickleability of the output of Serializers