Skip to content

Commit

Permalink
fix APNS test after introduction of APNS_MAX_NOTIFICATION_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurprs authored and jleclanche committed Oct 7, 2014
1 parent ff2016b commit 88d99eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_apns_push_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ def test_using_extra(self):
def test_oversized_payload(self):
socket = mock.MagicMock()
with mock.patch("push_notifications.apns._apns_pack_frame") as p:
self.assertRaises(APNSDataOverflow, _apns_send, "123", "_" * 257, socket=socket)
self.assertRaises(APNSDataOverflow, _apns_send, "123", "_" * 2049, socket=socket)
p.assert_has_calls([])

0 comments on commit 88d99eb

Please sign in to comment.