MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / test_get_user_agent

Method test_get_user_agent

tests/TestNetwork.py:151–155  ·  view source on GitHub ↗

Unit test for method get_user_agent()

(self)

Source from the content-addressed store, hash-verified

149 f'get_ip_for_url({bad_url})={ret}')
150
151 def test_get_user_agent(self):
152 """Unit test for method get_user_agent()"""
153 agent = get_user_agent()
154 logger.debug("user agent = '%s'", agent)
155 self.assertIsString(agent)
156
157 def test_fetch_url_nonretry(self):
158 """Unit test for fetch_url() without retry"""

Callers

nothing calls this directly

Calls 2

get_user_agentFunction · 0.90
assertIsStringMethod · 0.80

Tested by

no test coverage detected