def test_on_add_sets_ui_breakpoint(self):
        ui = Mock()
        file = vdebug.util.FilePath("/path/to/file")
        line = 20
        bp = vdebug.breakpoint.LineBreakpoint(ui,file,line)
        bp.on_add()
        ui.register_breakpoint.assert_called_with(bp)
The default translation function.
dataset/ETHPy150Open joonty/vdebug/tests/test_breakpoint_breakpoint.py/LineBreakpointTest.test_on_add_sets_ui_breakpoint--crossover with--dataset/ETHPy150Open openstack/python-solumclient/solumclient/openstack/common/gettextutils.py/TranslatorFactory.primary