def test_set_debug_mask_bad_mask(self): with self.assertRaises(ValueError) as cm: boom.set_debug_mask(boom.BOOM_DEBUG_ALL + 1)
def test_BoomLogger_debug_masked(self): bl = boom.BoomLogger("boom", 0) boom.set_debug_mask(boom.BOOM_DEBUG_ALL) bl.set_debug_mask(boom.BOOM_DEBUG_ENTRY) bl.debug_masked("qux")
def test_set_debug_mask(self): boom.set_debug_mask(boom.BOOM_DEBUG_ALL)