Commits

Danny Navarro  committed 9388b87

test instantiation of response when request doesn't have environ

  • Participants
  • Parent commits 0c2947a

Comments (0)

Files changed (1)

File tests/test_response.py

     res.set_cookie('x', u'foo') # test unicode value
     assert_raises(TypeError, Response, app_iter=iter(['a']),
                   body="somebody")
+    del req.environ
+    eq_(Response(request=req)._environ, req)
+    eq_(Response(request=req)._request, None)
 
 def test_headers():
     r = Response()