Package openid :: Package test :: Module test_accept
[frames] | no frames]

Module test_accept

source code

Classes
  MatchAcceptTest
Functions
 
getTestData()
Read the test data off of disk
source code
 
chunk(lines)
Return groups of lines separated by whitespace or comments
source code
 
parseLines(chunk)
Take the given chunk of lines and turn it into a test data dictionary
source code
 
parseAvailable(available_text)
Parse an Available: line's data
source code
 
parseExpected(expected_text)
Parse an Expected: line's data
source code
 
pyUnitTests() source code
Function Details

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

[(int, str)] -> {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)]