def test_url_completion_delete_quickmark(qtmodeltester, config_stub, web_history, quickmarks, bookmarks, qtbot):
 config_stub.data['completion'] = {'timestamp-format': '%Y-%m-%d', 'web-history-max-items': 2}
 model = urlmodel.UrlCompletionModel()
 qtmodeltester.data_display_may_return_none = True
 qtmodeltester.check(model)
 view = _mock_view_index(model, 0, 1, qtbot)
 model.delete_cur_item(view)
 assert ('aw' in quickmarks.marks)
 assert ('ddg' not in quickmarks.marks)
 assert ('wiki' in quickmarks.marks)

def test_url_completion_delete_quickmark ( qtmodeltester , config_stub , web_history , quickmarks , bookmarks , qtbot ) : config_stub . data [ 'completion' ] = { 'timestamp-format' : '%Y-%m-%d' , 'web-history-max-items' : 2 } model = urlmodel . UrlCompletionModel ( ) qtmodeltester . data_display_may_return_none = True qtmodeltester . check ( model ) view = _mock_view_index ( model , 0 , 1 , qtbot ) model . delete_cur_item ( view ) assert ( 'aw' in quickmarks . marks ) assert ( 'ddg' not in quickmarks . marks ) assert ( 'wiki' in quickmarks . marks )
test deleting a bookmark from the url completion model .