              nested = NestedSerializer(required=False)
  
          self.Serializer = TestSerializer
  
          class FakeMultiDict(dict):
              """
              Use this to fake a `format="multipart"` request, because
              `utils.is_html_input()` returns `True` when the dict object has
              an attribute of "getlist".
              """
              def getlist(self, value, default=None):
                  if value in self:
                      return [self[value]]
                  else:
                      return [] if default is None else default
  
          self.FakeMultiDict = FakeMultiDict
  
      def test_json_validate(self):
          input_data = {}
          serializer = self.Serializer(data=input_data)
          assert serializer.is_valid()
  
 
</s> remove         input_data = self.FakeMultiDict()
 </s> add         input_data = QueryDict() </s> remove         input_data = self.FakeMultiDict(**{'nested.one': '1'})
 </s> add         input_data = QueryDict('nested[one]=1')
              nested = NestedSerializer(required=False)
  
          self.Serializer = TestSerializer
  














      def test_json_validate(self):
          input_data = {}
          serializer = self.Serializer(data=input_data)
          assert serializer.is_valid()
  
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 remove FakeMultiDict definition in nested serializer tests and replace with django QueryDict 
tests/test_serializer_nested.py