Beispiel #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)
Beispiel #2
0
 def a_test_21_print_bookmarks(self):
     from pbm.main import ChromiumBookmarks
     bookmarks = ChromiumBookmarks.read_bookmarks(self.bookmarks_path)
     output = ChromiumBookmarks.print_bookmarks(bookmarks)
     self.assertTrue(output)
Beispiel #3
0
 def test_11_read_bookmarks(self):
     from pbm.main import ChromiumBookmarks
     bookmarks = ChromiumBookmarks.read_bookmarks(self.bookmarks_path)
     self.assertTrue(bookmarks)