class documentation

class ExtractURLpartsTests(SynchronousTestCase): (source)

View In Hierarchy

Tests for klein.resource.extractURLparts.

Method assertDecodingFailure Checks whether exception consists of a single UnicodeDecodeError for part.
Method test_afUnixSocket Test proper handling of AF_UNIX sockets
Method test_failAll If multiple parts fail, they all get appended to the errors list of URLDecodeError.
Method test_failPathInfo Raises URLDecodeError if PATH_INFO can't be decoded.
Method test_failScriptName Raises URLDecodeError if SCRIPT_NAME can't be decoded.
Method test_failServerName Raises URLDecodeError if SERVER_NAME can't be decoded.
Method test_types Returns the correct types.
def assertDecodingFailure(self, exception, part): (source)

Checks whether exception consists of a single UnicodeDecodeError for part.

Parameters
exception:URLDecodeErrorUndocumented
part:strUndocumented
def test_afUnixSocket(self): (source)

Test proper handling of AF_UNIX sockets

def test_failAll(self): (source)

If multiple parts fail, they all get appended to the errors list of URLDecodeError.

def test_failPathInfo(self): (source)

Raises URLDecodeError if PATH_INFO can't be decoded.

def test_failScriptName(self): (source)

Raises URLDecodeError if SCRIPT_NAME can't be decoded.

def test_failServerName(self): (source)

Raises URLDecodeError if SERVER_NAME can't be decoded.

def test_types(self): (source)

Returns the correct types.