title: Django Deserialization
body: <p>I am getting the following error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):<br>
    File "../tests.py", line 92, in test_single_search</p>
    
    <p>for return_obj in serializers.deserialize("json",response, ensure_ascii=False):<br>
    File "/Library/Python/2.6/site-packages/django/core/serializers/json.py",
    line 38, in Deserializer
        for obj in PythonDeserializer(simplejson.load(stream),
    **options):   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/<strong>init</strong>.py",
    line 264, in load
        return loads(fp.read(), AttributeError: 'HttpResponse' object
    has no attribute 'read'</p>
  </blockquote>
  
  <p>In views.py the serialization works correctly:</p>
  
  <pre><code>resultsjson = serializers.serialize("json", results, ensure_ascii=False)
  return HttpResponse(resultsjson, mimetype = 'application/json')
  </code></pre>
  
  <p>However, when I try to process the result in my calling method in test.py:</p>
  
  <pre><code>response = self.client.get("/path/?query=testValue")
  for return_obj in serializers.deserialize("json", response, ensure_ascii=False):
        print return_obj
  </code></pre>
  
  <p>I get the above error. Has anyone come across the same error. I am using Django 1.2 (latest version from svn) and it appears to be using the in-built simplejson serializser.</p>