1
"""Tests for distutils.command.upload."""
6
from distutils.command.upload import upload
7
from distutils.core import Distribution
9
from distutils.tests import support
10
from distutils.tests.test_config import PYPIRC, PyPIRCCommandTestCase
12
class uploadTestCase(PyPIRCCommandTestCase):
14
def test_finalize_options(self):
17
f = open(self.rc, 'w')
23
cmd.finalize_options()
24
for attr, waited in (('username', 'me'), ('password', 'secret'),
26
('repository', 'http://pypi.python.org/pypi')):
27
self.assertEquals(getattr(cmd, attr), waited)
31
return unittest.makeSuite(uploadTestCase)
33
if __name__ == "__main__":
34
unittest.main(defaultTest="test_suite")