





'''simple docstring'''






from unittest.mock import Mock, patch

from file_transfer.send_file import send_file






@patch("socket.socket"	)
@patch("builtins.open"	)
def      __A						(							a_						:  Union[str, Any]      ,a_						:  int	):
  # ===== initialization =====
  lowerCAmelCase     :    Optional[int]						=   Mock()
  lowerCAmelCase     :    Union[str, Any]						=   conn, Mock()
  lowerCAmelCase     :    List[str]						=   iter([1, None]	)
  lowerCAmelCase     :    Dict						=   lambda a_	: next(a_	)

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

  # ===== 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      __A						(							a_						:  int      ,a_						:  int	):
		return abs(a_	) if a == 0 else greatest_common_divisor(b % a      ,a_	)






def      __A						(							a_						:  int      ,a_						:  int	):
		while y:  # --> when y=0 then loop will terminate and return x as final GCD.
				lowerCAmelCase	,		lowerCAmelCase     :    Tuple						=   y, x % y
		return abs(a_	)






def      __A						(							):
		try:
				lowerCAmelCase     :    Tuple						=   input("Enter two integers separated by comma (,): "	).split(","	)
				lowerCAmelCase     :    Tuple						=   int(nums[0]	)
				lowerCAmelCase     :    Tuple						=   int(nums[1]	)
				print(
				    f'''greatest_common_divisor({num_a}, {num_a}) = '''
				    f'''{greatest_common_divisor(a_      ,a_	)}'''	)
				print(f'''By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(a_      ,a_	)}'''	)
		except (IndexError, UnboundLocalError, ValueError):
				print("Wrong input"	)


if __name__ == "__main__":
					main()



