Thread: [cedar-backup-svn] SF.net SVN: cedar-backup: [821] cedar-backup2/trunk/test/clitests.py
Brought to you by:
pronovic
|
From: <pro...@us...> - 2007-12-18 03:10:05
|
Revision: 821
http://cedar-backup.svn.sourceforge.net/cedar-backup/?rev=821&view=rev
Author: pronovic
Date: 2007-12-17 19:10:02 -0800 (Mon, 17 Dec 2007)
Log Message:
-----------
Update _ActionSet tests to work with new interface
Modified Paths:
--------------
cedar-backup2/trunk/test/clitests.py
Modified: cedar-backup2/trunk/test/clitests.py
===================================================================
--- cedar-backup2/trunk/test/clitests.py 2007-12-18 03:09:43 UTC (rev 820)
+++ cedar-backup2/trunk/test/clitests.py 2007-12-18 03:10:02 UTC (rev 821)
@@ -81,7 +81,8 @@
from os.path import isdir, isfile, islink, isabs, exists
from getopt import GetoptError
from CedarBackup2.testutil import failUnlessAssignRaises, captureOutput
-from CedarBackup2.config import ExtensionsConfig, ExtendedAction, ActionDependencies, PreActionHook, PostActionHook
+from CedarBackup2.config import OptionsConfig, ExtensionsConfig
+from CedarBackup2.config import ExtendedAction, ActionDependencies, PreActionHook, PostActionHook
from CedarBackup2.cli import _usage, _version
from CedarBackup2.cli import Options
from CedarBackup2.cli import _ActionSet
@@ -4448,7 +4449,8 @@
"""
actions = None
extensions = ExtensionsConfig(None, None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_002(self):
"""
@@ -4456,7 +4458,8 @@
"""
actions = []
extensions = ExtensionsConfig(None, None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_003(self):
"""
@@ -4464,7 +4467,8 @@
"""
actions = []
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_004(self):
"""
@@ -4472,7 +4476,8 @@
"""
actions = [ "collect", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -4487,7 +4492,8 @@
"""
actions = [ "stage", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
@@ -4502,7 +4508,8 @@
"""
actions = [ "store", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(300, actionSet.actionSet[0].index)
@@ -4517,7 +4524,8 @@
"""
actions = [ "purge", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(400, actionSet.actionSet[0].index)
@@ -4532,7 +4540,8 @@
"""
actions = [ "all", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 4)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -4562,7 +4571,8 @@
"""
actions = [ "rebuild", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(0, actionSet.actionSet[0].index)
self.failUnlessEqual("rebuild", actionSet.actionSet[0].name)
@@ -4576,7 +4586,8 @@
"""
actions = [ "validate", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(0, actionSet.actionSet[0].index)
self.failUnlessEqual("validate", actionSet.actionSet[0].name)
@@ -4590,7 +4601,8 @@
"""
actions = [ "collect", "collect", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4609,7 +4621,8 @@
"""
actions = [ "collect", "stage", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4628,7 +4641,8 @@
"""
actions = [ "collect", "store", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4647,7 +4661,8 @@
"""
actions = [ "collect", "purge", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4666,7 +4681,8 @@
"""
actions = [ "collect", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_016(self):
"""
@@ -4674,7 +4690,8 @@
"""
actions = [ "collect", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_017(self):
"""
@@ -4682,7 +4699,8 @@
"""
actions = [ "collect", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_018(self):
"""
@@ -4690,7 +4708,8 @@
"""
actions = [ "stage", "collect", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4709,7 +4728,8 @@
"""
actions = [ "stage", "stage", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
self.failUnlessEqual("stage", actionSet.actionSet[0].name)
@@ -4728,7 +4748,8 @@
"""
actions = [ "stage", "store", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
self.failUnlessEqual("stage", actionSet.actionSet[0].name)
@@ -4747,7 +4768,8 @@
"""
actions = [ "stage", "purge", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
self.failUnlessEqual("stage", actionSet.actionSet[0].name)
@@ -4766,7 +4788,8 @@
"""
actions = [ "stage", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_023(self):
"""
@@ -4774,7 +4797,8 @@
"""
actions = [ "stage", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_024(self):
"""
@@ -4782,7 +4806,8 @@
"""
actions = [ "stage", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_025(self):
"""
@@ -4790,7 +4815,8 @@
"""
actions = [ "store", "collect", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4809,7 +4835,8 @@
"""
actions = [ "store", "stage", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
self.failUnlessEqual("stage", actionSet.actionSet[0].name)
@@ -4828,7 +4855,8 @@
"""
actions = [ "store", "store", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(300, actionSet.actionSet[0].index)
self.failUnlessEqual("store", actionSet.actionSet[0].name)
@@ -4847,7 +4875,8 @@
"""
actions = [ "store", "purge", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(300, actionSet.actionSet[0].index)
self.failUnlessEqual("store", actionSet.actionSet[0].name)
@@ -4866,7 +4895,8 @@
"""
actions = [ "store", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_030(self):
"""
@@ -4874,7 +4904,8 @@
"""
actions = [ "store", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_031(self):
"""
@@ -4882,7 +4913,8 @@
"""
actions = [ "store", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_032(self):
"""
@@ -4890,7 +4922,8 @@
"""
actions = [ "purge", "collect", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
self.failUnlessEqual("collect", actionSet.actionSet[0].name)
@@ -4909,7 +4942,8 @@
"""
actions = [ "purge", "stage", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
self.failUnlessEqual("stage", actionSet.actionSet[0].name)
@@ -4928,7 +4962,8 @@
"""
actions = [ "purge", "store", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(300, actionSet.actionSet[0].index)
self.failUnlessEqual("store", actionSet.actionSet[0].name)
@@ -4947,7 +4982,8 @@
"""
actions = [ "purge", "purge", ]
extensions = ExtensionsConfig([], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(400, actionSet.actionSet[0].index)
self.failUnlessEqual("purge", actionSet.actionSet[0].name)
@@ -4966,7 +5002,8 @@
"""
actions = [ "purge", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_037(self):
"""
@@ -4974,7 +5011,8 @@
"""
actions = [ "purge", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_038(self):
"""
@@ -4982,7 +5020,8 @@
"""
actions = [ "purge", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_039(self):
"""
@@ -4990,7 +5029,8 @@
"""
actions = [ "all", "collect", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_040(self):
"""
@@ -4998,7 +5038,8 @@
"""
actions = [ "all", "stage", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_041(self):
"""
@@ -5006,7 +5047,8 @@
"""
actions = [ "all", "store", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_042(self):
"""
@@ -5014,7 +5056,8 @@
"""
actions = [ "all", "purge", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_043(self):
"""
@@ -5022,7 +5065,8 @@
"""
actions = [ "all", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_044(self):
"""
@@ -5030,7 +5074,8 @@
"""
actions = [ "all", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_045(self):
"""
@@ -5038,7 +5083,8 @@
"""
actions = [ "all", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_046(self):
"""
@@ -5046,7 +5092,8 @@
"""
actions = [ "rebuild", "collect", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_047(self):
"""
@@ -5054,7 +5101,8 @@
"""
actions = [ "rebuild", "stage", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_048(self):
"""
@@ -5062,7 +5110,8 @@
"""
actions = [ "rebuild", "store", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_049(self):
"""
@@ -5070,7 +5119,8 @@
"""
actions = [ "rebuild", "purge", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_050(self):
"""
@@ -5078,7 +5128,8 @@
"""
actions = [ "rebuild", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_051(self):
"""
@@ -5086,7 +5137,8 @@
"""
actions = [ "rebuild", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_052(self):
"""
@@ -5094,7 +5146,8 @@
"""
actions = [ "rebuild", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_053(self):
"""
@@ -5102,7 +5155,8 @@
"""
actions = [ "validate", "collect", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_054(self):
"""
@@ -5110,7 +5164,8 @@
"""
actions = [ "validate", "stage", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_055(self):
"""
@@ -5118,7 +5173,8 @@
"""
actions = [ "validate", "store", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_056(self):
"""
@@ -5126,7 +5182,8 @@
"""
actions = [ "validate", "purge", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_057(self):
"""
@@ -5134,7 +5191,8 @@
"""
actions = [ "validate", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_058(self):
"""
@@ -5142,7 +5200,8 @@
"""
actions = [ "validate", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_059(self):
"""
@@ -5150,7 +5209,8 @@
"""
actions = [ "validate", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_060(self):
"""
@@ -5158,7 +5218,8 @@
"""
actions = [ "bogus", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_061(self):
"""
@@ -5166,7 +5227,8 @@
"""
actions = [ "bogus", "collect", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_062(self):
"""
@@ -5174,7 +5236,8 @@
"""
actions = [ "bogus", "stage", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_063(self):
"""
@@ -5182,7 +5245,8 @@
"""
actions = [ "bogus", "store", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_064(self):
"""
@@ -5190,7 +5254,8 @@
"""
actions = [ "bogus", "purge", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_065(self):
"""
@@ -5198,7 +5263,8 @@
"""
actions = [ "bogus", "all", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_066(self):
"""
@@ -5206,7 +5272,8 @@
"""
actions = [ "bogus", "rebuild", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_067(self):
"""
@@ -5214,7 +5281,8 @@
"""
actions = [ "bogus", "validate", ]
extensions = ExtensionsConfig([], None)
- self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, None)
+ options = OptionsConfig()
+ self.failUnlessRaises(ValueError, _ActionSet, actions, extensions, options, None, False, True)
def testActionSet_068(self):
"""
@@ -5222,7 +5290,8 @@
"""
actions = [ "collect", "one", ]
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 50), ], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(50, actionSet.actionSet[0].index)
self.failUnlessEqual("one", actionSet.actionSet[0].name)
@@ -5241,7 +5310,8 @@
"""
actions = [ "stage", "one", ]
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 50), ], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(50, actionSet.actionSet[0].index)
self.failUnlessEqual(isdir, actionSet.actionSet[0].function)
@@ -5260,7 +5330,8 @@
"""
actions = [ "store", "one", ]
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 50), ], None)
- actionSet = _ActionSet(actions, extensions, None)
+ options = OptionsConfig()
+ actionSet = _ActionSet(actions, extensions, options, None, False, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(50, actionSet.actionSet[0].index)
self.failUnlessEqual("one", actionSet.actionSet[0].name)
@@ -5279,7 +5350,8 @@
"""
actions = [ "purge", "one", ]
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 50), ], None)
- actionSet = _ActionSet(actions,...
[truncated message content] |
|
From: <pro...@us...> - 2007-12-19 04:05:18
|
Revision: 824
http://cedar-backup.svn.sourceforge.net/cedar-backup/?rev=824&view=rev
Author: pronovic
Date: 2007-12-18 20:05:16 -0800 (Tue, 18 Dec 2007)
Log Message:
-----------
Remove some unused variables
Modified Paths:
--------------
cedar-backup2/trunk/test/clitests.py
Modified: cedar-backup2/trunk/test/clitests.py
===================================================================
--- cedar-backup2/trunk/test/clitests.py 2007-12-19 04:00:31 UTC (rev 823)
+++ cedar-backup2/trunk/test/clitests.py 2007-12-19 04:05:16 UTC (rev 824)
@@ -8609,7 +8609,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
@@ -8626,7 +8625,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
@@ -8643,7 +8641,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
@@ -8660,7 +8657,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 1)
@@ -8677,7 +8673,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failIf(actionSet.actionSet is None)
self.failUnless(len(actionSet.actionSet) == 4)
@@ -8703,7 +8698,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(0, actionSet.actionSet[0].index)
@@ -8719,7 +8713,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 1)
self.failUnlessEqual(0, actionSet.actionSet[0].index)
@@ -8735,7 +8728,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -8754,7 +8746,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -8773,7 +8764,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -8792,7 +8782,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -8811,7 +8800,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
@@ -8830,7 +8818,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
@@ -8849,7 +8836,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(200, actionSet.actionSet[0].index)
@@ -8868,7 +8854,6 @@
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 50), ], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(50, actionSet.actionSet[0].index)
@@ -8887,7 +8872,6 @@
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 50), ], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(50, actionSet.actionSet[0].index)
@@ -8906,7 +8890,6 @@
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 150), ], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -8925,7 +8908,6 @@
extensions = ExtensionsConfig([ ExtendedAction("one", "os.path", "isdir", 150), ], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 2)
self.failUnlessEqual(150, actionSet.actionSet[0].index)
@@ -8944,7 +8926,6 @@
extensions = ExtensionsConfig([], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 4)
self.failUnlessEqual(100, actionSet.actionSet[0].index)
@@ -8972,7 +8953,6 @@
ExtendedAction("five", "os.path", "exists", 450), ], None)
options = OptionsConfig()
options.managedActions = [ "collect", "purge", "one", ]
- peers = PeersConfig()
actionSet = _ActionSet(actions, extensions, options, None, True, True)
self.failUnless(len(actionSet.actionSet) == 9)
self.failUnlessEqual(50, actionSet.actionSet[0].index)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|