From c01eb4de19f0e9fe11f24d9028950b225e3ee383 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Tue, 4 Oct 2016 10:59:59 -0700 Subject: [PATCH] fix: assertTrue -> eq_ issue #674 --- autopush/tests/test_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autopush/tests/test_integration.py b/autopush/tests/test_integration.py index 3ccdff48..98a21c4c 100644 --- a/autopush/tests/test_integration.py +++ b/autopush/tests/test_integration.py @@ -458,7 +458,7 @@ def test_delivery_while_disconnected(self): yield client.hello() result = yield client.get_notification() ok_(result != {}) - self.assertTrue(len(result["updates"]) == 1) + eq_(len(result["updates"]), 1) eq_(result["updates"][0]["channelID"], chan) yield self.shut_down(client) @@ -473,7 +473,7 @@ def test_delivery_repeat_without_ack(self): yield client.hello() result = yield client.get_notification() ok_(result != {}) - self.assertTrue(len(result["updates"]) == 1) + eq_(len(result["updates"]), 1) eq_(result["updates"][0]["channelID"], chan) yield client.disconnect()