class _BaseURLPathTests: (source)
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_all |
A created URLPath has bytes attributes. |
Method | test_child |
Calling str() with a URLPath.child() will return a URL which is the child of the URL it was instantiated with. |
Method | test_double |
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_here |
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_mutability |
Same as test_mutabilityWithText but for bytes. |
Method | test_mutability |
Setting attributes on urlpath.URLPath should change the value returned by str . |
Method | test_parent |
Calling str() with a URLPath.parent() will return a URL which is the parent of the URL it was instantiated with. |
Method | test_parts |
All of the attributes of urlpath.URLPath should be bytes . |
Method | test_path |
urlpath.URLPath.pathList returns a list of bytes . |
Method | test_sibling |
Calling str() with a URLPath.sibling() will return a URL which is the sibling of the URL it was instantiated with. |
Method | test_string |
Calling str() with a URLPath will return the same URL that it was constructed with. |
Method | test_str |
Calling str() with a URLPath will always return a str . |
Calling str() with a URLPath.child() will return a URL which is the child of the URL it was instantiated with.
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.
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.
Setting attributes on urlpath.URLPath
should change the value returned by str
.
Parameters | |
stringstr and returning str or bytes . | a callable to parameterize this test for different text types. |
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.sibling() will return a URL which is the sibling of the URL it was instantiated with.