本文整理汇总了Python中distutils.tests.test_config.PYPIRC属性的典型用法代码示例。如果您正苦于以下问题:Python test_config.PYPIRC属性的具体用法?Python test_config.PYPIRC怎么用?Python test_config.PYPIRC使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类distutils.tests.test_config
的用法示例。
在下文中一共展示了test_config.PYPIRC属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_finalize_options
# 需要导入模块: from distutils.tests import test_config [as 别名]
# 或者: from distutils.tests.test_config import PYPIRC [as 别名]
def test_finalize_options(self):
# new format
self.write_file(self.rc, PYPIRC)
dist = Distribution()
cmd = upload(dist)
cmd.finalize_options()
for attr, waited in (('username', 'me'), ('password', 'secret'),
('realm', 'pypi'),
('repository', 'https://upload.pypi.org/legacy/')):
self.assertEqual(getattr(cmd, attr), waited)
示例2: test_finalize_options
# 需要导入模块: from distutils.tests import test_config [as 别名]
# 或者: from distutils.tests.test_config import PYPIRC [as 别名]
def test_finalize_options(self):
# new format
self.write_file(self.rc, PYPIRC)
dist = Distribution()
cmd = upload(dist)
cmd.finalize_options()
for attr, waited in (('username', 'me'), ('password', 'secret'),
('realm', 'pypi'),
('repository', 'http://pypi.python.org/pypi')):
self.assertEqual(getattr(cmd, attr), waited)
示例3: test_finalize_options
# 需要导入模块: from distutils.tests import test_config [as 别名]
# 或者: from distutils.tests.test_config import PYPIRC [as 别名]
def test_finalize_options(self):
# new format
self.write_file(self.rc, PYPIRC)
dist = Distribution()
cmd = upload(dist)
cmd.finalize_options()
for attr, waited in (('username', 'me'), ('password', 'secret'),
('realm', 'pypi'),
('repository', 'https://pypi.python.org/pypi')):
self.assertEqual(getattr(cmd, attr), waited)