

"""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							,    __UpperCamelCase      ):
 '''simple docstring'''





 UpperCAmelCase__					:  Any					   =					Mock()
 UpperCAmelCase__					:  Optional[Any]					   =					conn, Mock()
 UpperCAmelCase__					:  Optional[Any]					   =					iter([1, None]      )
 UpperCAmelCase__					:  List[str]					   =					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 = 1000      ):
 '''simple docstring'''





 return sum(2 * a * ((a - 1) // 2) for a in range(3							,    n + 1      )      )


if __name__ == "__main__":
      print(solution())





