Known subclasses: twisted.python.test.test_urlpath.BytesURLPathTests, twisted.python.test.test_urlpath.StringURLPathTests, twisted.python.test.test_urlpath.UnicodeURLPathTests

Tests for instantiated urlpath.URLPaths.

Method test_partsAreBytes All of the attributes of urlpath.URLPath should be bytes.
Method test_strReturnsStr Calling str() with a URLPath will always return a str.
Method test_mutabilityWithText Setting attributes on urlpath.URLPath should change the value returned by str.
Method test_mutabilityWithBytes Same as test_mutabilityWithText but for bytes.
Method test_allAttributesAreBytes A created URLPath has bytes attributes.
Method test_stringConversion Calling str() with a URLPath will return the same URL that it was constructed with.
Method test_childString Calling str() with a URLPath.child() will return a URL which is the child of the URL it was instantiated with.
Method test_siblingString Calling str() with a URLPath.sibling() will return a URL which is the sibling of the URL it was instantiated with.
Method test_parentString Calling str() with a URLPath.parent() will return a URL which is the parent of the URL it was instantiated with.
Method test_hereString Calling str() with a URLPath.here() will return a URL which is the URL that it was instantiated with, without any file, query, or fragment.
Method test_doubleSlash Calling urlpath.URLPath.click on a urlpath.URLPath with a trailing slash with a relative URL containing a leading slash will result in a URL with a single slash at the start of the path portion.
Method test_pathList urlpath.URLPath.pathList returns a list of bytes.
def test_partsAreBytes(self):

All of the attributes of urlpath.URLPath should be bytes.

def test_strReturnsStr(self):

Calling str() with a URLPath will always return a str.

def test_mutabilityWithText(self, stringType=type(u'')):

Setting attributes on urlpath.URLPath should change the value returned by str.

ParametersstringTypea callable to parameterize this test for different text types. (type: 1-argument callable taking unicode and returning str or bytes.)
def test_mutabilityWithBytes(self):

Same as test_mutabilityWithText but for bytes.

def test_allAttributesAreBytes(self):

A created URLPath has bytes attributes.

def test_stringConversion(self):

Calling str() with a URLPath will return the same URL that it was constructed with.

def test_childString(self):

Calling str() with a URLPath.child() will return a URL which is the child of the URL it was instantiated with.

def test_siblingString(self):

Calling str() with a URLPath.sibling() will return a URL which is the sibling of the URL it was instantiated with.

def test_parentString(self):

Calling str() with a URLPath.parent() will return a URL which is the parent of the URL it was instantiated with.

def test_hereString(self):

Calling str() with a URLPath.here() will return a URL which is the URL that it was instantiated with, without any file, query, or fragment.

def test_doubleSlash(self):

Calling urlpath.URLPath.click on a urlpath.URLPath with a trailing slash with a relative URL containing a leading slash will result in a URL with a single slash at the start of the path portion.

def test_pathList(self):
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.