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

Module test_accept

source code

Classes [hide private]
  MatchAcceptTest

Functions [hide private]
  getTestData()
Read the test data off of disk
  chunk(lines)
Return groups of lines separated by whitespace or comments
  parseLines(chunk)
Take the given chunk of lines and turn it into a test data dictionary
  parseAvailable(available_text)
Parse an Available: line's data
  parseExpected(expected_text)
Parse an Expected: line's data
  loadTests()

Variables [hide private]
  runner = unittest.TextTestRunner()

Function Details [hide private]

getTestData()

source code 

Read the test data off of disk

() -> [(int, str)]

chunk(lines)

source code 

Return groups of lines separated by whitespace or comments

[(int, str)] -> [[(int, str)]]

parseLines(chunk)

source code 

Take the given chunk of lines and turn it into a test data dictionary

{str:(int, str)}

parseAvailable(available_text)

source code 

Parse an Available: line's data

str -> [str]

parseExpected(expected_text)

source code 

Parse an Expected: line's data

str -> [(str, float)]

loadTests()

source code 

Variables Details [hide private]

runner

Value:
unittest.TextTestRunner()