Exemplo n.º 1
0
class BookmarkPresenterTest(TestCase):

    """
    Presenter for individual bookmarks.

    """

    def setUp(self):
        self.bookmarks = bookmark.loader.find(join(dirname(__file__), "fixtures", "bookmarks"))

        self.presenter = BookmarkPresenter(self.bookmarks.next())

    def test_to_object(self):
        self.assertIsInstance(self.presenter.to_object(), bookmark.Bookmark)
Exemplo n.º 2
0
    def setUp(self):
        self.bookmarks = bookmark.loader.find(join(dirname(__file__), "fixtures", "bookmarks"))

        self.presenter = BookmarkPresenter(self.bookmarks.next())