tests: fix firewall tests after 6e8e48e3 "Avoid UTC datetime"

This commit is contained in:
Marek Marczykowski-Górecki 2018-03-22 01:47:41 +01:00
parent 6469705196
commit 74c1893ce3
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -300,7 +300,7 @@ class TC_06_Expire(qubes.tests.QubesTestCase):
self.assertEqual(str(instance), '1463292452')
self.assertEqual(instance.api_rule, 'expire=1463292452')
self.assertEqual(instance.datetime,
datetime.datetime(2016, 5, 15, 6, 7, 32))
datetime.datetime.fromtimestamp(1463292452))
self.assertIsNone(instance.rule)
def test_001_str(self):
@ -308,7 +308,7 @@ class TC_06_Expire(qubes.tests.QubesTestCase):
instance = qubes.firewall.Expire('1463292452')
self.assertEqual(str(instance), '1463292452')
self.assertEqual(instance.datetime,
datetime.datetime(2016, 5, 15, 6, 7, 32))
datetime.datetime.fromtimestamp(1463292452))
self.assertIsNone(instance.rule)
def test_002_invalid(self):