Commit db06e9d5 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix wrong test

parent dc16be4c
...@@ -253,18 +253,18 @@ reboot = 2100-11-11 ...@@ -253,18 +253,18 @@ reboot = 2100-11-11
self.assertEquals(promise.checkConsistency(fixit=1), True) self.assertEquals(promise.checkConsistency(fixit=1), True)
self.maxDiff = None self.maxDiff = None
_today = datetime.datetime.today().strftime("%Y-%m-%d")
expected_message_list = [ expected_message_list = [
'Expected Reboot early them 2011-10-10', 'Expected Reboot early them 2011-10-10',
'Expected Upgrade early them %s' % \ 'Expected Upgrade early them %s' % _today,
datetime.datetime.today().strftime("%Y-%m-%d"),
'Last reboot : 2100-11-11', 'Last reboot : 2100-11-11',
'Last upgrade : 1999-11-11', 'Last upgrade : 1999-11-11',
'Upgrade is required.', 'Upgrade is required.',
'Retrying after fixConsistency....\n\n', 'Retrying after fixConsistency....\n\n',
'Expected Reboot early them 2011-10-10', 'Expected Reboot early them 2011-10-10',
'Expected Upgrade early them 2014-07-15', 'Expected Upgrade early them %s' % _today,
'Last reboot : 2100-11-11', 'Last reboot : 2100-11-11',
'Last upgrade : 2014-07-15', 'Last upgrade : %s' % _today,
'Your system is up to date', 'Your system is up to date',
'No need to reboot.', 'No need to reboot.',
'No need to reboot.'] 'No need to reboot.']
......
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