






from unittest.mock import Mock, patch

from file_transfer.send_file import send_file

@patch("""socket.socket"""			)
@patch("""builtins.open"""			)
def    UpperCamelCase						(	_A,   _A			):






						"""simple docstring"""







						__magic_name__      :       Union[str, Any]       						= Mock()
						__magic_name__      :       List[Any]       						= conn, Mock()
						__magic_name__      :       Dict       						= iter([1, None]			)
						__magic_name__      :       List[str]       						= 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()








def    UpperCamelCase						(	_A			):






						"""simple docstring"""







						if not isinstance(_A,   _A			) or number < 0:
												raise ValueError("""Input must be a non-negative integer"""			)

						__magic_name__      :       str       						= 0
						while number:
												# This way we arrive at next set bit (next 1) instead of looping
												# through each bit and checking for 1s hence the
												# loop won't run 32 times it will only run the number of `1` times
												number &= number - 1
												count += 1
						return count


if __name__ == "__main__":
		import doctest

		doctest.testmod()
