Esempio n. 1
0
 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/')
Esempio n. 2
0
 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/')
Esempio n. 3
0
 def test_get_absolute_url(self):
     bookmark = BookmarkFactory(accountAccountFactory(username='******'),
                         url_hash='12345678abc')
     self.assertEqual(bookmark.get_absolute_url(),
                                             '/pinboard/bob/12345678abc/')
Esempio n. 4
0
 def test_get_absolute_url(self):
     bookmark = BookmarkFactory(accountAccountFactory(username='******'),
                                url_hash='12345678abc')
     self.assertEqual(bookmark.get_absolute_url(),
                      '/pinboard/bob/12345678abc/')