Replace some test case adjectives

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Rob Crittenden
2018-06-18 15:04:20 -04:00
committed by Christian Heimes
parent f90e137a17
commit 57fd79ffce
4 changed files with 28 additions and 25 deletions

View File

@@ -41,10 +41,10 @@ class test_textui(ClassChecker):
assert str(e) == 'rows: need %r or %r; got %r' % (list, tuple, 'hello')
rows = [
'hello',
'naughty',
'empathetic',
'nurse',
]
assert o.max_col_width(rows) == len('naughty')
assert o.max_col_width(rows) == len('empathetic')
rows = (
( 'a', 'bbb', 'ccccc'),
('aa', 'bbbb', 'cccccc'),

View File

@@ -1156,10 +1156,10 @@ class test_StrEnum(EnumChecker):
_cls = parameters.StrEnum
_name = 'my_strenum'
_datatype = unicode
_test_values = u'Hello', u'naughty', u'nurse!'
_test_values = u'Hello', u'tall', u'nurse!'
_bad_type_values = u'Hello', 1, u'nurse!'
_bad_type = int
_translation = u"values='Hello', 'naughty', 'nurse!'"
_translation = u"values='Hello', 'tall', 'nurse!'"
_bad_values = u'Howdy', u'quiet', u'library!'
_single_value_translation = u"value='Hello'"

View File

@@ -199,7 +199,7 @@ class test_Gettext(object):
def test_mod(self):
inst = self.klass('hello %(adj)s nurse', 'foo', 'bar')
assert inst % dict(adj='naughty', stuff='junk') == 'hello naughty nurse'
assert inst % dict(adj='tall', stuff='junk') == 'hello tall nurse'
def test_eq(self):
inst1 = self.klass('what up?', 'foo', 'bar')