Imported Upstream version 4.3.1

This commit is contained in:
Mario Fetka
2021-08-10 02:37:58 +02:00
parent a791de49a2
commit 2f177da8f2
2056 changed files with 421730 additions and 1668138 deletions

View File

@@ -21,8 +21,8 @@
Test the `ipalib.cli` module.
"""
from ipatests.util import raises, ClassChecker
from ipalib import cli, plugable
from ipatests.util import raises, get_api, ClassChecker
from ipalib import cli, plugable, frontend, backend
import pytest
@@ -41,10 +41,10 @@ class test_textui(ClassChecker):
assert str(e) == 'rows: need %r or %r; got %r' % (list, tuple, 'hello')
rows = [
'hello',
'empathetic',
'naughty',
'nurse',
]
assert o.max_col_width(rows) == len('empathetic')
assert o.max_col_width(rows) == len('naughty')
rows = (
( 'a', 'bbb', 'ccccc'),
('aa', 'bbbb', 'cccccc'),
@@ -87,7 +87,7 @@ class DummyCommand(object):
class DummyAPI(object):
def __init__(self, cnt):
self.__cmd = plugable.APINameSpace(self.__cmd_iter(cnt), DummyCommand)
self.__cmd = plugable.NameSpace(self.__cmd_iter(cnt))
def __get_cmd(self):
return self.__cmd