我们从Python开源项目中,提取了以下16个代码示例,用于说明如何使用setuptools.dist.feature_options()。
def testFeatureOptions(self): dist = self.dist self.assertTrue( ('with-dwim',None,'include DWIM') in dist.feature_options ) self.assertTrue( ('without-dwim',None,'exclude DWIM (default)') in dist.feature_options ) self.assertTrue( ('with-bar',None,'include bar (default)') in dist.feature_options ) self.assertTrue( ('without-bar',None,'exclude bar') in dist.feature_options ) self.assertEqual(dist.feature_negopt['without-foo'],'with-foo') self.assertEqual(dist.feature_negopt['without-bar'],'with-bar') self.assertEqual(dist.feature_negopt['without-dwim'],'with-dwim') self.assertTrue(not 'without-baz' in dist.feature_negopt)
def testFeatureOptions(self): dist = self.dist assert ( ('with-dwim',None,'include DWIM') in dist.feature_options ) assert ( ('without-dwim',None,'exclude DWIM (default)') in dist.feature_options ) assert ( ('with-bar',None,'include bar (default)') in dist.feature_options ) assert ( ('without-bar',None,'exclude bar') in dist.feature_options ) assert dist.feature_negopt['without-foo'] == 'with-foo' assert dist.feature_negopt['without-bar'] == 'with-bar' assert dist.feature_negopt['without-dwim'] == 'with-dwim' assert (not 'without-baz' in dist.feature_negopt)
def testFeatureOptions(self): dist = self.dist assert ( ('with-dwim', None, 'include DWIM') in dist.feature_options ) assert ( ('without-dwim', None, 'exclude DWIM (default)') in dist.feature_options ) assert ( ('with-bar', None, 'include bar (default)') in dist.feature_options ) assert ( ('without-bar', None, 'exclude bar') in dist.feature_options ) assert dist.feature_negopt['without-foo'] == 'with-foo' assert dist.feature_negopt['without-bar'] == 'with-bar' assert dist.feature_negopt['without-dwim'] == 'with-dwim' assert ('without-baz' not in dist.feature_negopt)