def browser_commands(): from roland.core import BrowserCommands commands = BrowserCommands() commands.roland = MagicMock() commands.webview = MagicMock() commands.entry_line = MagicMock() return commands
def real_browser_commands(): from roland.core import BrowserCommands, WebKit2 commands = BrowserCommands() commands.webview = WebKit2.WebView() return commands