Imported Upstream version 4.3.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user