def test_successfully(self, mock_mount): '''Tests calling NfsBroker.setup_download_dir() successfully''' mount = 'host:/dir' download_dir = os.path.join('the', 'download', 'dir') work_dir = os.path.join('the', 'work', 'dir') # Call method to test broker = NfsBroker() broker.load_config({'type': NfsBroker.broker_type, 'mount': mount}) broker.setup_download_dir(download_dir, work_dir) # Check results mock_mount.assert_called_once_with(mount, work_dir, True)