summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorroot <root@webui.pzuna>2010-05-04 14:12:55 -0400
committerRob Crittenden <rcritten@redhat.com>2010-05-04 13:39:42 -0400
commita3d1b1755965c73a758acb1ec4992bf2428fa37b (patch)
tree0e37d6991e9269e0cd40c832e70ef93fe5e89bf9 /tests
parent3ea044fb59bf6ada2c0e9b507c1d6c4dfd8aaa23 (diff)
downloadfreeipa-a3d1b1755965c73a758acb1ec4992bf2428fa37b.tar.gz
freeipa-a3d1b1755965c73a758acb1ec4992bf2428fa37b.tar.xz
freeipa-a3d1b1755965c73a758acb1ec4992bf2428fa37b.zip
Add weekly periodic schedule to AccessTime param type.
Fix bug #588414
Diffstat (limited to 'tests')
-rw-r--r--tests/test_ipalib/test_parameters.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_ipalib/test_parameters.py b/tests/test_ipalib/test_parameters.py
index e14538c50..84d735308 100644
--- a/tests/test_ipalib/test_parameters.py
+++ b/tests/test_ipalib/test_parameters.py
@@ -1372,19 +1372,18 @@ class test_AccessTime(ClassChecker):
for value in (u'absolute 201012161032 ~ 201012161033',
u'periodic monthly week 2 day Sat,Sun 0900-1300',
u'periodic yearly month 4 day 1-31 0800-1400',
+ u'periodic weekly day 7 0800-1400',
u'periodic daily 0800-1400',
):
assert rule(dummy, value) is None
assert dummy.called() is False
- # FIXME, weekly is not implemented in AccessTime
-# u'periodic weekly day 8 0800-1400',
-
# And some bad ones
for value in (u'absolute 201012161032 - 201012161033',
u'absolute 201012161032 ~',
u'periodic monthly day Sat,Sun 0900-1300',
u'periodical yearly month 4 day 1-31 0800-1400',
+ u'periodic weekly day 8 0800-1400',
):
e = raises(ValidationError, o._rule_required, None, value)