






from unittest.mock import Mock, patch

from file_transfer.send_file import send_file






@patch('socket.socket'				)
@patch('builtins.open'				)
def    __magic_name__    (	SCREAMING_SNAKE_CASE     ,     SCREAMING_SNAKE_CASE				)     ->    str:
							# ===== initialization =====
							_lowercase							:   int 							=   Mock()
							_lowercase							:   int 							=   conn, Mock()
							_lowercase							:   Tuple 							=   iter([1, None]				)
							_lowercase							:   Optional[int] 							=   lambda SCREAMING_SNAKE_CASE				: next(_lowerCAmelCase				)

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

							# ===== 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 __future__ import annotations

_UpperCamelCase											=		10

def 			a_	(				_lowerCAmelCase			) -> list[int]:
  __lowerCamelCase			:			str       			=					1
  __lowerCamelCase			:			Union[str, Any]       			=					max(_lowerCAmelCase			)
  while placement <= max_digit:
    # declare and initialize empty buckets
    __lowerCamelCase			:			list[list]       			=					[[] for _ in range(_lowerCAmelCase			)]
    # split list_of_ints between the buckets
    for i in list_of_ints:
      __lowerCamelCase			:			List[str]       			=					int((i / placement) % RADIX			)
      buckets[tmp].append(_lowerCAmelCase			)
    # put each buckets' contents into list_of_ints
    __lowerCamelCase			:			Dict       			=					0
    for b in range(_lowerCAmelCase			):
      for i in buckets[b]:
        __lowerCamelCase			:			List[str]       			=					i
        a += 1
        # move to next
    placement *= RADIX
  return list_of_ints


if __name__ == "__main__":
   import doctest

   doctest.testmod()






