Exemplo 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/')
Exemplo 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/')
Exemplo 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/')
Exemplo 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/')