Commits

Danny Navarro committed 9388b87

test instantiation of response when request doesn't have environ

Comments (0)

Files changed (1)

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()