本文整理匯總了Python中FedoraReview.Mock._mock_cmd方法的典型用法代碼示例。如果您正苦於以下問題:Python Mock._mock_cmd方法的具體用法?Python Mock._mock_cmd怎麽用?Python Mock._mock_cmd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FedoraReview.Mock
的用法示例。
在下文中一共展示了Mock._mock_cmd方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_mock_options
# 需要導入模塊: from FedoraReview import Mock [as 別名]
# 或者: from FedoraReview.Mock import _mock_cmd [as 別名]
def test_mock_options(self):
''' test -o/--mock-options and -m/mock-config '''
nextrelease = '%d' % (int(RELEASE) + 1)
v = nextrelease if RELEASE in self.BUILDROOT else RELEASE
buildroot = 'fedora-%s-i386' % v
self.init_test('mock-options',
argv = ['-n', 'python-test', '--cache'],
options='--resultdir=results --uniqueext=foo',
buildroot=buildroot)
bug = NameBug('python-test')
bug.find_urls()
bug.download_files()
mock_cmd = ' '.join(Mock._mock_cmd())
Mock._get_root()
self.assertIn('-r ' + buildroot, mock_cmd)
self.assertEqual(Mock.mock_root, buildroot + '-foo')