

"""simple docstring"""






from unittest.mock import Mock, patch

from file_transfer.send_file import send_file



@patch("socket.socket"	)
@patch("builtins.open"	)
def   lowercase_	(    _lowercase       :		Union[str, Any]							,      _lowercase       :		Dict	):




					'''simple docstring'''






					UpperCAmelCase			:   Optional[Any]      =				Mock()
					UpperCAmelCase			:   Dict      =				conn, Mock()
					UpperCAmelCase			:   List[str]      =				iter([1, None]	)
					UpperCAmelCase			:   Optional[Any]      =				lambda _lowercase	: next(_lowercase	)

					# ===== invoke =====
					send_file(filename="mytext.txt"							,      testing=_lowercase	)

					# ===== 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"""






snake_case_   :   List[str]        =       6_5_5_2_1



def   lowercase_	(    _lowercase       :		str	):




					'''simple docstring'''






					UpperCAmelCase			:   Dict      =				1
					UpperCAmelCase			:   Optional[int]      =				0
					for plain_chr in plain_text:
										UpperCAmelCase			:   int      =				(a + ord(_lowercase	)) % MOD_ADLER
										UpperCAmelCase			:   str      =				(b + a) % MOD_ADLER
					return (b << 16) | a


