8000
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 c9e49e8 commit dca6f00Copy full SHA for dca6f00
gcloud/test_connection.py
@@ -43,3 +43,9 @@ def authorize(self, http):
43
conn = self._makeOne(creds)
44
self.assertTrue(conn.http is authorized)
45
self.assertTrue(isinstance(creds._called_with, Http))
46
+
47
+ def test_user_agent_format(self):
48
+ from pkg_resources import get_distribution
49
+ expected_ua = 'gcloud-python/{0}'.format(get_distribution('gcloud').version)
50
+ conn = self._makeOne()
51
+ self.assertEqual(conn.USER_AGENT, expected_ua)
0 commit comments