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