      class Meta:
          model = Album
          fields = ['title']  # lists are also valid options
  
  
  class BasicTests(TestCase):
      def setUp(self):
          self.comment = Comment(
              'tom@example.com',
              'Happy new year!',
 
</s> remove from rest_framework.tests.models import (Album, ActionItem, Anchor, BasicModel,
 </s> add from rest_framework.tests.models import (HasPositiveIntegerAsChoice, Album, ActionItem, Anchor, BasicModel,
class PositiveIntegerAsChoiceSerializer(serializers.ModelSerializer):
    class Meta:
        model = HasPositiveIntegerAsChoice
        fields = ['some_integer']

      class Meta:
          model = Album
          fields = ['title']  # lists are also valid options
  
class PositiveIntegerAsChoiceSerializer(serializers.ModelSerializer):
    class Meta:
        model = HasPositiveIntegerAsChoice
        fields = ['some_integer']

  
  class BasicTests(TestCase):
      def setUp(self):
          self.comment = Comment(
              'tom@example.com',
              'Happy new year!',
keep keep keep add keep keep keep keep keep keep
 Added test for "positive_integer in choices tuple does not get parsed if not string".

Signed-off-by: Joel Marcotte <skaner@gmail.com> 
rest_framework/tests/serializer.py