--- 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 20:15:30 2012 @@ -192,6 +192,20 @@ self.assertEqual(headers['Content-length'], '290') self.assertTrue('tarek' in req.data) + def test_repository(self): + # testing -r, --repository option asks user to + # provide credentials, missing from .pypirc + cmd = self._get_cmd({}) + cmd.repository = 'https://pypi.python.org/pypi' + + # mock input - there should be a prompt + # ... + # 4. quit + # Your selection [default 1]: + # 4 + register_module.raw_input = RawInputs('4') + cmd.run() + def test_strict(self): # testing the script option # when on, the register command stops if