MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / test_user_agent

Method test_user_agent

tests/test_utils.py:180–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

178 self.assertEqual(parse_loglevel(' %d ' % logging.INFO), logging.INFO)
179
180 def test_user_agent(self):
181 from dwave.cloud.package_info import __packagename__, __version__
182 ua = user_agent(__packagename__, __version__)
183
184 required = [__packagename__, 'python', 'machine', 'system', 'platform']
185 for key in required:
186 self.assertIn(key, ua)
187
188 def test_platform_tags_smoke(self):
189 pt = platform_tags()

Callers

nothing calls this directly

Calls 1

user_agentFunction · 0.90

Tested by

no test coverage detected