Fixed status message alignment

Change-Id: Ie279d7853f4e4db86dddcffdfaaf1d1f023098a4
This commit is contained in:
Martin Magr
2014-02-26 14:26:38 +01:00
parent e34b032c9e
commit 43bf761da2
5 changed files with 49 additions and 30 deletions

View File

@@ -86,12 +86,10 @@ class SequenceTestCase(PackstackTestCaseMixin, TestCase):
assert contents.startswith('Step 2')
output = []
state_fmt = '[ %s ]\n'
self.steps.insert(0, {'title': 'Step 2'})
for i in self.steps:
space = 70 - len(i['title'])
title = '[ %s ]\n' % utils.color_text('DONE', 'green')
output.append('%s...%s' % (i['title'], title.rjust(space)))
output.append('%s\n' % utils.state_message(i['title'],
'DONE', 'green'))
self.seq.run(config={'test': 'test'})
contents = sys.stdout.getvalue()