def METHOD_NAME(self):
    tmp = self.mkdtemp()
    path = os.path.join(tmp, 'xxx')
    self.write_file(path)
    command, pyversion, filename = 'xxx', '2.6', path
    dist_files = [(command, pyversion, filename)]
    self.write_file(self.rc, PYPIRC_LONG_PASSWORD)
    # lets run it
    pkg_dir, dist = self.create_dist(dist_files=dist_files)
    cmd = upload(dist)
    cmd.show_response = 1
    cmd.ensure_finalized()
    cmd.run()
    # what did we send ?
    headers = dict(self.last_open.req.headers)
    self.assertGreaterEqual(int(headers['Content-length']), 2162)
    content_type = headers['Content-type']
    self.assertTrue(content_type.startswith('multipart/form-data'))
    self.assertEqual(self.last_open.req.get_method(), 'POST')
    expected_url = 'https://upload.pypi.org/legacy/'
    self.assertEqual(self.last_open.req.get_full_url(), expected_url)
    data = self.last_open.req.data
    self.assertIn(b'xxx',data)
    self.assertIn(b'protocol_version', data)
    self.assertIn(b'sha256_digest', data)
    self.assertIn(
        b'cd2eb0837c9b4c962c22d2ff8b5441b7b45805887f051d39bf133b583baf'
        b'6860',
        data
    )
    if b'md5_digest' in data:
        self.assertIn(b'f561aaf6ef0bf14d4208bb46a4ccb3ad', data)
    if b'blake2_256_digest' in data:
        self.assertIn(
            b'b6f289a27d4fe90da63c503bfe0a9b761a8f76bb86148565065f040be'
            b'6d1c3044cf7ded78ef800509bccb4b648e507d88dc6383d67642aadcc'
            b'ce443f1534330a',
            data
        )
    # The PyPI response body was echoed
    results = self.get_logs(INFO)
    self.assertEqual(results[-1], 75 * '-' + '\nxyzzy\n' + 75 * '-')