Coverage for bookie.tests.test_webviews : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Test that we're meeting delicious API specifications"""
"""Test the normal web views user's user"""
# setup the default bookie bookmark username="admin", desc=u"Bookie Website", ext=u"Bookie Documentation Home", tags=u"bookmarks")
"""Verify we can call the /recent url """
msg='recent status is 200, ' + res.status) msg="Request should contain body_str: " + res.body)
"""We should be able to page through the list"""
msg='recent page 1 status is 200, ' + res.status) msg="Page 1 should contain body_str: " + res.body)
"""Veryify that without the right API key we get forbidden""" 'api_key': 'wrong_key' }
msg='Import status is 403, ' + res.status)
"""Changes link should go to the bookie commits github page."""
msg='recent status is 200, ' + res.status) msg="Changes link should appear: " + res.body)
"""Test the new bookmark real views"""
"""Verify that we can call the /new url""" "Should see the add bookmark title")
"""Use can manually submit a bookmark.""" # no url entered '/admin/new_error', params={ 'url': '', 'description': '', 'extended': '', 'tags': '' })
"""Verify the RSS feeds function correctly."""
"""Viewing /recent should have a rss url in the content."""
msg='recent status is 200, ' + res.status) msg="Request should contain rss str: " + res.body)
"""The url should match the /recent request with tags."""
msg='recent status is 200, ' + res.status) msg="Request should contain rss url: " + res.body)
"""The rss feed should be a parseable feed."""
msg='recent status is 200, ' + res.status)
# http://packages.python.org/feedparser/ # introduction.html#parsing-a-feed-from-a-string 'title': entry.title, 'category': entry.category, 'date': time.strftime('%d %b %Y', entry.updated_parsed), 'description': entry.description, 'link': entry.link, })
|