Package yadis :: Package test :: Module test_discover
[hide private]
[frames] | no frames]

Module test_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)
  loadTests()
  test()

Variables [hide private]
  status_header_re = <_sre.SRE_Pattern object at 0x84b54a8>
  four04_pat = 'Content-Type: text/plain\n\nNo such file %s\n'

Function Details [hide private]

mkResponse(data)

source code 

loadTests()

source code 

test()

source code 

Variables Details [hide private]

status_header_re

Value:
Status: (\d+) .*?$                                                     
      

four04_pat

Value:
'''Content-Type: text/plain

No such file %s
'''