File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1442,8 +1442,8 @@ def test_download(self):
1442
1442
self .request .return_value ._content_consumed = False
1443
1443
1444
1444
# 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 ):
1447
1447
with open ('download' , 'wb+' ) as fd :
1448
1448
self .asset .download (fd )
1449
1449
o .assert_called_once_with ('download' , 'wb+' )
@@ -1465,8 +1465,8 @@ def test_download(self):
1465
1465
'Content-Type' : None ,
1466
1466
})
1467
1467
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 ):
1470
1470
with open ('download' , 'wb+' ) as fd :
1471
1471
self .asset .download (fd )
1472
1472
o .assert_called_once_with ('download' , 'wb+' )
You can’t perform that action at this time.
0 commit comments