


"""simple docstring"""


def  __snake_case       (   UpperCamelCase__	)      ->		list:







		"""simple docstring"""





		return [
		    txt[:a] + txt[a].upper() + txt[a + 1 :]
		    for a in range(len(UpperCamelCase__	)	)
		    if txt[a].isalpha()
		]


if __name__ == "__main__":
	__import__("doctest").testmod()









"""simple docstring"""


from unittest.mock import Mock, patch

from file_transfer.send_file import send_file







@patch('socket.socket'	)
@patch('builtins.open'	)
def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__	)      ->		Dict:







		"""simple docstring"""





		A					       = Mock()
		A					       = conn, Mock()
		A					       = iter([1, None]	)
		A					       = lambda UpperCamelCase__	: 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()





