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

Method test_warning

tests/TestOptions.py:279–285  ·  view source on GitHub ↗

Test warning preferences

(self)

Source from the content-addressed store, hash-verified

277 self.assertEqual(o.get('test_key'), 'test_value')
278
279 def test_warning(self):
280 """Test warning preferences"""
281 o = bleachbit.Options.options
282 self.assertFalse(o.get_warning_preference('test_key'))
283 o.remember_warning_preference('test_key')
284 self.assertTrue(o.get_warning_preference('test_key'))
285 o.close()
286
287 def test_overrides(self):
288 """Test CLI override functionality"""

Callers

nothing calls this directly

Calls 3

closeMethod · 0.80

Tested by

no test coverage detected