File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1442,8 +1442,8 @@ def test_download(self):
14421442 self .request .return_value ._content_consumed = False
14431443
14441444 # 200, to file-like object
1445- o = mock_open ()
1446- with patch ('{0}.open' .format (__name__ ), o , create = True ):
1445+ o = mock . mock_open ()
1446+ with mock . patch ('{0}.open' .format (__name__ ), o , create = True ):
14471447 with open ('download' , 'wb+' ) as fd :
14481448 self .asset .download (fd )
14491449 o .assert_called_once_with ('download' , 'wb+' )
@@ -1465,8 +1465,8 @@ def test_download(self):
14651465 'Content-Type' : None ,
14661466 })
14671467 del self .conf ['allow_redirects' ]
1468- o = mock_open ()
1469- with patch ('{0}.open' .format (__name__ ), o , create = True ):
1468+ o = mock . mock_open ()
1469+ with mock . patch ('{0}.open' .format (__name__ ), o , create = True ):
14701470 with open ('download' , 'wb+' ) as fd :
14711471 self .asset .download (fd )
14721472 o .assert_called_once_with ('download' , 'wb+' )
You can’t perform that action at this time.
0 commit comments