'Test that missing entries are removed after a reload'

def test_bookmarks_removes_missing_entries(self):

    bookmark = {u'path': u'/tmp/this/does/not/exist', u'name': u'notexist'}
    settings = self.new_settings()
    settings.add_bookmark(bookmark[u'path'], bookmark[u'name'])
    settings.save()
    settings = self.new_settings()
    bookmarks = settings.bookmarks
    self.assertEqual(len(settings.bookmarks), 0)
    self.assertFalse((bookmark in bookmarks))
