twisted.python.test.test_urlpath._BaseURLPathTests(object)
class documentationtwisted.python.test.test_urlpath
(View In Hierarchy)
Known subclasses: twisted.python.test.test_urlpath.BytesURLPathTests, twisted.python.test.test_urlpath.StringURLPathTests, twisted.python.test.test_urlpath.UnicodeURLPathTests
Tests for instantiated urlpath.URLPath
s.
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 . |
Setting attributes on urlpath.URLPath
should change the value returned by str
.
Parameters | stringType | a callable to parameterize this test for different text types. (type: 1-argument callable taking unicode and
returning str
or bytes .) |
Calling str()
with a URLPath
will
return the same URL that it was constructed with.
Calling str()
with a URLPath.child()
will
return a URL which is the child of the URL it was instantiated with.
Calling str()
with a URLPath.sibling()
will
return a URL which is the sibling of the URL it was instantiated with.
Calling str()
with a URLPath.parent()
will
return a URL which is the parent of the URL it was instantiated with.
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.
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.