示例#1
0
 def test_31_walk_bookmarks(self):
     from pbm.main import ChromiumBookmarks
     bookmarks = ChromiumBookmarks.read_bookmarks(self.bookmarks_path)
     self.assertTrue(bookmarks)
     bookmarks = itertools.chain(
         ChromiumBookmarks.walk_bookmarks(
             bookmarks['roots']['bookmark_bar']),
         ChromiumBookmarks.walk_bookmarks(
             bookmarks['roots']['other']))
     self.check_bookmarks_list(bookmarks)