File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ def test_get_obj(self):
327327 self .assertEqual (resp ['Last-Modified' ], "Wed, 24 Dec 2014 06:00:00 +0000" )
328328 self .assertEqual (resp .content , "C" * 42 )
329329
330- @patch ('djangodav .views.render_to_response ' , Mock (return_value = HttpResponse ('listing' )))
330+ @patch ('django .views.generic.get.TemplateView.get ' , Mock (return_value = HttpResponse ('listing' )))
331331 def test_head_object (self ):
332332 path = '/object.txt'
333333 v = DavView (path = path , base_url = '/base' , _allowed_methods = Mock (return_value = ['ALL' ]), acl_class = FullAcl )
@@ -338,7 +338,7 @@ def test_head_object(self):
338338 self .assertEqual ("" , resp .content )
339339 self .assertEqual ("0" , resp ['Content-Length' ])
340340
341- @patch ('djangodav .views.views.render_to_response ' , Mock (return_value = HttpResponse ('listing' )))
341+ @patch ('django .views.generic.get.TemplateView.get ' , Mock (return_value = HttpResponse ('listing' )))
342342 def test_get_collection (self ):
343343 path = '/collection/'
344344 v = DavView (path = path , acl_class = FullAcl , base_url = '/base' , _allowed_methods = Mock (return_value = ['ALL' ]))
You can’t perform that action at this time.
0 commit comments