We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d722c39 commit c330d05Copy full SHA for c330d05
tests/test_make_request.py
@@ -3,6 +3,8 @@
3
4
Uses the awesome httpbin.org to validate responses
5
"""
6
+import platform
7
+
8
import twilio
9
from nose.tools import assert_equal, raises
10
from mock import patch, Mock, ANY
@@ -12,7 +14,10 @@
12
14
from twilio.rest.resources.connection import PROXY_TYPE_SOCKS5
13
15
16
get_headers = {
- "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
+ ),
21
"Accept-Charset": "utf-8",
22
"Accept": "application/json",
23
}
0 commit comments