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 e040196 commit 60e0505Copy full SHA for 60e0505
tests/unit/rest/test_client.py
@@ -110,7 +110,7 @@ def tearDown(self):
110
def test_set_default_user_agent(self):
111
self.client.request('GET', 'https://api.twilio.com/')
112
request_header = self.client.http_client.last_request.headers['User-Agent']
113
- self.assertRegex(request_header, r'^twilio-python\/[0-9.]+\s\(\w+\s\w+\)\sPython\/[^\s]+$')
+ self.assertRegex(request_header, r'^twilio-python\/[0-9.]+(-rc\.[0-9]+)?\s\(\w+\s\w+\)\sPython\/[^\s]+$')
114
115
def test_set_user_agent_extensions(self):
116
expected_user_agent_extensions = ['twilio-run/2.0.0-test', 'flex-plugin/3.4.0']
0 commit comments