8000 update test to include new user agent string · stomatocode/twilio-python@c330d05 · GitHub
[go: up one dir, main page]

Skip to content

Commit c330d05

Browse files
author
Kevin Burke
committed
update test to include new user agent string
1 parent d722c39 commit c330d05

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_make_request.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
44
Uses the awesome httpbin.org to validate responses
55
"""
6+
import platform
7+
68
import twilio
79
from nose.tools import assert_equal, raises< 7F8C /div>
810
from mock import patch, Mock, ANY
@@ -12,7 +14,10 @@
1214
from twilio.rest.resources.connection import PROXY_TYPE_SOCKS5
1315

1416
get_headers = {
15-
"User-Agent": "twilio-python/%s" % (twilio.__version__),
17+
"User-Agent": "twilio-python/{version} (Python {python_version})".format(
18+
version=twilio.__version__,
19+
python_version=platform.python_version(),
20+
),
1621
"Accept-Charset": "utf-8",
1722
"Accept": "application/json",
1823
}

0 commit comments

Comments
 (0)
0