Commit 12be2bd2 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Update Changelog for config unittests

Refs: #4058
parent 8556d269
......@@ -10,6 +10,7 @@ Changes:
- Remove commands.pithos.DelimiterArgument, replace with ValueArgument
wherever it is used
- Replace print methods with member print methods in _commands.* [#4292]
- kamaki.cli.config is now a directory package [#4058]
Features:
......@@ -18,4 +19,5 @@ Features:
errors
- Modify print methods in cli utils to use arbitary stream objects [#4288]
- Implement wrapers for cli.utils print methods, in _commands [#4292]
- Implement unittests for kamaki.cli.config [#4058]
......@@ -234,14 +234,15 @@ class UtilsMethods(TestCase):
title = sorted(set(title).intersection(item))
pick = item.get if with_redundancy else item.pop
header = ' '.join('%s' % pick(key) for key in title)
self.assertEqual(
bold.mock_calls[bold_counter], call(header))
self.assertEqual(out.read(5), 'bold\n')
if header:
self.assertEqual(
bold.mock_calls[bold_counter], call(header))
self.assertEqual(out.read(5), 'bold\n')
bold_counter += 1
self.assertEqual(
PD.mock_calls[pd_counter],
call(item, indent=INDENT_TAB, out=out))
pd_counter += 1
bold_counter += 1
elif isinstance(item, list) or isinstance(item, tuple):
self.assertEqual(
PL.mock_calls[pl_counter],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment