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'Status: (\d+) .*?$', re.MULTIL...
  four04_pat = "...
Variables Details [hide private]

status_header_re

Value:
re.compile(r'Status: (\d+) .*?$', re.MULTILINE)

four04_pat

Value:
"""\
Content-Type: text/plain

No such file %s
"""