Beispiel #1
0
 def test_complete_brkpts(self):
     bpmgr = Mbreakpoint.BreakpointManager()
     bp = bpmgr.add_breakpoint('foo', 10, 5)
     for find in ('1'):
         self.assertEqual(Mcomplete.complete_brkpts(bpmgr, find), ['1'],
                          "breakpoint completion of '%s'" % find)
     for find in ('2', '11'):
         self.assertEqual(Mcomplete.complete_brkpts(bpmgr, find), [],
                          "breakpoint non-completion of '%s'" % find)
         pass
     return
 def test_complete_brkpts(self):
     bpmgr = Mbreakpoint.BreakpointManager()
     bp = bpmgr.add_breakpoint('foo', 5)
     for find in ('1'):
         self.assertEqual(Mcomplete.complete_brkpts(bpmgr, find), ['1'],
                          "breakpoint completion of '%s'" % find)
     for find in ('2', '11'):
         self.assertEqual(Mcomplete.complete_brkpts(bpmgr, find), [],
                          "breakpoint non-completion of '%s'" % find)
         pass
     return
Beispiel #3
0
def complete_bpnumber(self, prefix):
    return Mcomplete.complete_brkpts(self.core.bpmgr, prefix)
Beispiel #4
0
def complete_bpnumber(self, prefix):
    return Mcomplete.complete_brkpts(self.core.bpmgr, prefix)