puzzlestream.backend.test module

Puzzlestream test module.

contains test function wrapper

puzzlestream.backend.test.test(func)[source]

Test function wrapper.

This wrapper marks a function in a module as a test function. Example usage:

@test  
def testFunctionExample(stream):  
    return isinstance(stream["example"], int)