コード例 #1
0
 def test_zero(self):
     config = PluginCallConfiguration({}, {importer_constants.KEY_MAX_DOWNLOADS: 0})
     try:
         importer_config.validate_max_downloads(config)
         self.fail()
     except ValueError, e:
         self.assertTrue('0' in e[0])
コード例 #2
0
ファイル: test_importer_config.py プロジェクト: pombreda/pulp
 def test_zero(self):
     config = PluginCallConfiguration({}, {importer_constants.KEY_MAX_DOWNLOADS: 0})
     try:
         importer_config.validate_max_downloads(config)
         self.fail()
     except ValueError, e:
         self.assertTrue('0' in e[0])
コード例 #3
0
 def test_optional(self):
     config = PluginCallConfiguration({}, {})
     importer_config.validate_max_downloads(config)
コード例 #4
0
 def test_validate_str(self):
     config = PluginCallConfiguration(
         {}, {importer_constants.KEY_MAX_DOWNLOADS: '2'})
     importer_config.validate_max_downloads(config)
コード例 #5
0
 def test_optional(self):
     config = PluginCallConfiguration({}, {})
     importer_config.validate_max_downloads(config)
コード例 #6
0
 def test_validate_str(self):
     config = PluginCallConfiguration({}, {importer_constants.KEY_MAX_DOWNLOADS: '2'})
     importer_config.validate_max_downloads(config)