Package openid :: Package test :: Module test_yadis_discover
[hide private]
[frames] | no frames]

Module test_yadis_discover

source code

Tests for yadis.discover.


To Do: Now that yadis.discover uses urljr.fetchers, we should be able to do tests with a mock fetcher instead of spawning threads with BaseHTTPServer.

Classes [hide private]
  QuitServer
  TestFetcher
  TestSecondGet
  _TestCase
Functions [hide private]
 
mkResponse(data) source code
 
pyUnitTests() source code
 
test() source code
Variables [hide private]
  status_header_re = re.compile(r'(?m)Status: (\d+) .*?$')
  four04_pat = 'Content-Type: text/plain\n\nNo such file %s\n'
  __package__ = 'openid.test'