



"""simple docstring"""







from unittest.mock import Mock, patch

from file_transfer.send_file import send_file

@patch("socket.socket"     )
@patch("builtins.open"     )
def       _lowerCamelCase				(							UpperCAmelCase_ :       str,	UpperCAmelCase_ :       List[str]     )	-> Tuple:






	"""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()









"""simple docstring"""







def       _lowerCamelCase				(							UpperCAmelCase_ :       int     )	-> int:






	"""simple docstring"""





	assert (
	    isinstance(UpperCAmelCase_,	UpperCAmelCase_     ) and number_of_steps > 0
	), F"""number_of_steps needs to be positive integer, your input {number_of_steps}"""
	if number_of_steps == 1:
		return 1
	A__							,							A__											=					1, 1
	for _ in range(number_of_steps - 1     ):
		A__							,							A__											=					current + previous, current
	return current


if __name__ == "__main__":
			import doctest

			doctest.testmod()




