def test_get_absolute_url(self): "Has the correct URL on this site" account = AccountFactory(username='******') bookmark = BookmarkFactory( account=account, url='http://www.example.com') self.assertEqual( bookmark.get_absolute_url(), '/pinboard/billy/847310eb455f/')
def test_get_absolute_url(self): "Has the correct URL on this site" account = AccountFactory(username='******') bookmark = BookmarkFactory(account=account, url='http://www.example.com') self.assertEqual(bookmark.get_absolute_url(), '/pinboard/billy/847310eb455f/')
def test_get_absolute_url(self): bookmark = BookmarkFactory(accountAccountFactory(username='******'), url_hash='12345678abc') self.assertEqual(bookmark.get_absolute_url(), '/pinboard/bob/12345678abc/')