Package openid :: Package test :: Module test_yadis_discover
[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
  QuitServer
  TestFetcher
  TestSecondGet
Functions
 
mkResponse(data) source code
 
pyUnitTests() source code
 
test() source code
Variables
  status_header_re = re.compile(r'(?m)Status: (\d+) .*?$')
  four04_pat = 'Content-Type: text/plain\n\nNo such file %s\n'