예제 #1
0
 def test_set_debug_mask_bad_mask(self):
     with self.assertRaises(ValueError) as cm:
         boom.set_debug_mask(boom.BOOM_DEBUG_ALL + 1)
예제 #2
0
 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")
예제 #3
0
 def test_set_debug_mask(self):
     boom.set_debug_mask(boom.BOOM_DEBUG_ALL)