From 4f4e8e2712269b41f2863f96d31d5e67ad7b4564 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 2 Sep 2008 20:33:08 +0000 Subject: [PATCH] 234: Renamed Option2 to Option --- ipalib/public.py | 2 +- ipalib/tests/test_public.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ipalib/public.py b/ipalib/public.py index 102f36b9d..d97f519bc 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -85,7 +85,7 @@ class DefaultFrom(plugable.ReadOnly): return None -class Option2(plugable.ReadOnly): +class Option(plugable.ReadOnly): def __init__(self, name, doc, type_, required=False, multivalue=False, diff --git a/ipalib/tests/test_public.py b/ipalib/tests/test_public.py index 72b07c4d1..2e732179b 100644 --- a/ipalib/tests/test_public.py +++ b/ipalib/tests/test_public.py @@ -104,18 +104,18 @@ class test_DefaltFrom(ClassChecker): assert o(**kw_copy) is None -class test_Option2(ClassChecker): +class test_Option(ClassChecker): """ - Tests the `public.Option2` class. + Tests the `public.Option` class. """ - _cls = public.Option2 + _cls = public.Option def test_class(self): assert self.cls.__bases__ == (plugable.ReadOnly,) def test_init(self): """ - Tests the `public.Option2.__init__` method. + Tests the `public.Option.__init__` method. """ name = 'sn' doc = 'Last Name' @@ -156,7 +156,7 @@ class test_Option2(ClassChecker): def test_normalize(self): """ - Tests the `public.Option2.validate` method. + Tests the `public.Option.validate` method. """ name = 'sn' doc = 'User last name' @@ -205,7 +205,7 @@ class test_Option2(ClassChecker): def test_validate(self): """ - Tests the `public.Option2.validate` method. + Tests the `public.Option.validate` method. """ name = 'sn' doc = 'User last name' @@ -259,7 +259,7 @@ class test_Option2(ClassChecker): def test_get_default(self): """ - Tests the `public.Option2.get_default` method. + Tests the `public.Option.get_default` method. """ name = 'greeting' doc = 'User greeting' @@ -293,7 +293,7 @@ class test_Option2(ClassChecker): def test_get_default(self): """ - Tests the `public.Option2.get_values` method. + Tests the `public.Option.get_values` method. """ name = 'status' doc = 'Account status'