test_webfinger.py 535 B

1234567891011121314151617181920
  1. # these are not good tests, mostly there are things that drive code
  2. from ostatus.webfinger import finger
  3. from ostatus.status import status
  4. from ostatus.profile import profile
  5. def test_webfinger():
  6. links = finger('cdent@tiddlyspace.com')
  7. assert 'http://tiddlyspace.com/profiles/cdent' in [
  8. link['href'] for link in links]
  9. def test_status():
  10. entry = status('cdent@tiddlyspace.com')
  11. print(entry['updated'], entry['content'])
  12. def test_profile():
  13. data = profile('cdent@tiddlyspace.com')
  14. print(data)