Commit 7d603bd0 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: test: make problem more explicit

parent a5190f56
...@@ -317,10 +317,11 @@ class TestSlapOSHasError(SlapOSTestCaseMixin): ...@@ -317,10 +317,11 @@ class TestSlapOSHasError(SlapOSTestCaseMixin):
self.assertEqual(installation.SoftwareInstallation_hasReportedError(), None) self.assertEqual(installation.SoftwareInstallation_hasReportedError(), None)
error_date = DateTime() error_date = DateTime() - 0.1
with PinnedDateTime(self, error_date): with PinnedDateTime(self, error_date):
installation.setErrorStatus("") installation.setErrorStatus("")
self.assertNotEqual(installation.SoftwareInstallation_hasReportedError(), None)
self.assertEqual( self.assertEqual(
rfc1123_date(installation.SoftwareInstallation_hasReportedError()), rfc1123_date(installation.SoftwareInstallation_hasReportedError()),
rfc1123_date(error_date)) rfc1123_date(error_date))
......
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