


'''simple docstring'''

from unittest.mock import Mock, patch

from file_transfer.send_file import send_file

@patch('''socket.socket''')
@patch('''builtins.open''')
def 							__magic_name__(						lowerCamelCase,				lowerCamelCase):
						__lowerCAmelCase							       =				Mock()
						__lowerCAmelCase							       =				conn, Mock()
						__lowerCAmelCase							       =				iter([1, None])
						__lowerCAmelCase							       =				lambda lowerCamelCase: next(_UpperCamelCase)

						# ===== invoke =====
						send_file(filename='''mytext.txt''',				testing=_UpperCamelCase)

						# ===== ensurance =====
						sock.assert_called_once()
						sock.return_value.bind.assert_called_once()
						sock.return_value.listen.assert_called_once()
						sock.return_value.accept.assert_called_once()
						conn.recv.assert_called_once()

						file.return_value.__enter__.assert_called_once()
						file.return_value.__enter__.return_value.read.assert_called()

						conn.send.assert_called_once()
						conn.close.assert_called_once()
						sock.return_value.shutdown.assert_called_once()
						sock.return_value.close.assert_called_once()





'''simple docstring'''

from .glue import GlueDataset, GlueDataTrainingArguments
from .language_modeling import (
    LineByLineTextDataset,
    LineByLineWithRefDataset,
    LineByLineWithSOPTextDataset,
    TextDataset,
    TextDatasetForNextSentencePrediction,
)
from .squad import SquadDataset, SquadDataTrainingArguments

