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

Method test_update_url

tests/TestUpdate.py:103–108  ·  view source on GitHub ↗

Check that the real update URL returns XML

(self)

Source from the content-addressed store, hash-verified

101 bleachbit.update_check_url = preserve_url
102
103 def test_update_url(self):
104 """Check that the real update URL returns XML"""
105 response = fetch_url(bleachbit.update_check_url)
106 self.assertEqual(response.status_code, 200)
107 self.assertTrue(response.text.startswith('<?xml version='))
108 xml.dom.minidom.parseString(response.text)
109
110 def test_update_winapp2(self):
111 fn = os.path.join(personal_cleaners_dir, 'winapp2.ini')

Callers

nothing calls this directly

Calls 1

fetch_urlFunction · 0.90

Tested by

no test coverage detected