Fix kwargs for poplib.POP3_SSL and poplib.POP3

This commit is contained in:
Jesaja Everling
2019-06-20 03:51:31 +00:00
committed by Roberto Rosario
parent ea7b4e46ac
commit e09bd48d65
2 changed files with 3 additions and 3 deletions

View File

@@ -217,7 +217,7 @@ class POP3SourceTestCase(GenericDocumentTestCase):
def user(self, username):
return
@mock.patch('poplib.POP3_SSL')
@mock.patch('poplib.POP3_SSL', autospec=True)
def test_download_document(self, mock_poplib):
mock_poplib.return_value = POP3SourceTestCase.MockMailbox()
self.source = POP3Email.objects.create(