From eae45149b3a8595b736c4109f488050b64a0b5cd Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Fri, 20 Sep 2019 20:56:00 -0400 Subject: [PATCH] MessageBird unit test added --- test/test_rest_plugins.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_rest_plugins.py b/test/test_rest_plugins.py index e3d45454..776f2d8d 100644 --- a/test/test_rest_plugins.py +++ b/test/test_rest_plugins.py @@ -2805,6 +2805,12 @@ TEST_URLS = ( # reference to to= and frome= 'instance': plugins.NotifyMessageBird, }), + ('msgbird://{}/15551232000'.format('a' * 25), { + 'instance': plugins.NotifyMessageBird, + # force a failure + 'response': False, + 'requests_response_code': requests.codes.internal_server_error, + }), ('msgbird://{}/15551232000'.format('a' * 25), { 'instance': plugins.NotifyMessageBird, # throw a bizzare code forcing us to fail to look it up