def METHOD_NAME(self):
    # file with no password
    self.write_file(self.rc, PYPIRC_NOPASSWORD)
    # make sure it passes
    dist = Distribution()
    cmd = upload(dist)
    cmd.finalize_options()
    self.assertEqual(cmd.password, None)
    # make sure we get it as well, if another command
    # initialized it at the dist level
    dist.password = 'xxx'
    cmd = upload(dist)
    cmd.finalize_options()
    self.assertEqual(cmd.password, 'xxx')