--- C:/Python27/Lib/distutils/tests/test_register.py.orig Tue Nov 13 19:39:32 2012 +++ C:/Python27/Lib/distutils/tests/test_register.py Tue Nov 13 21:01:45 2012 @@ -174,6 +174,14 @@ self.assertEqual(headers['Content-length'], '608') self.assertTrue('tarek' in req.data) + def test_password_passed(self): + # testing that manually entered password that is not + # saved to .pypirc on prompt is passed to the next command + register_module.raw_input = RawInputs('1', 'tarek', 'N') + cmd = self._get_cmd() + cmd.run() + self.assertEqual(cmd.distribution.password, 'password') + def test_password_reset(self): # this test runs choice 3 cmd = self._get_cmd()