mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
234: Renamed Option2 to Option
This commit is contained in:
parent
2784847b73
commit
4f4e8e2712
@ -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,
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user