diff options
author | crvi <crvisqr@gmail.com> | 2020-08-13 17:44:10 +0530 |
---|---|---|
committer | crvi <crvisqr@gmail.com> | 2020-08-14 03:24:56 +0530 |
commit | 6523379927f7a67dc96897fd5075e427d6d7cb6b (patch) | |
tree | 1460c0fc15d9c25e381ca6371a468c1f86735041 /test/dbus/histogram-test.py | |
parent | 2d1b2983b24de4eed93f51e4d9af25423d3c9ded (diff) | |
download | zeitgeist-6523379927f7a67dc96897fd5075e427d6d7cb6b.tar.gz |
test: port dbus tests to python3
Diffstat (limited to 'test/dbus/histogram-test.py')
-rw-r--r-- | test/dbus/histogram-test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dbus/histogram-test.py b/test/dbus/histogram-test.py index bd303f41..c31b06bb 100644 --- a/test/dbus/histogram-test.py +++ b/test/dbus/histogram-test.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # -.- coding: utf-8 -.- # histogram-test.py @@ -91,17 +91,17 @@ class HistogramTest(RemoteTestCase): ev, ev_timestamp = self._createEventOne(); inserted_ids = self.insertEventsAndWait([ev]) - self.assertEquals(1, len(inserted_ids)) + self.assertEqual(1, len(inserted_ids)) h_data = self.histogram.GetHistogramData() - self.assertEquals(1, len(h_data)) + self.assertEqual(1, len(h_data)) h_day_timestamp = h_data[0][0] #Check if the inserted event belong to the right day! day_ev = datetime.date.fromtimestamp(ev_timestamp) start_day = datetime.date.fromtimestamp(h_day_timestamp) - self.assertEquals(day_ev.day , start_day.day) + self.assertEqual(day_ev.day , start_day.day) if __name__ == "__main__": unittest.main() |