class VersionsTests(TestCase):
Undocumented
Method | test |
The base method returns a very simple representation of the version. |
Method | test_base |
The base version includes 'devX' for versions with dev releases. |
Method | test_base |
The base version includes 'postXdevX' for versions with dev releases and a postrelease. |
Method | test_base |
The base version includes 'rcXdevX' for versions with dev releases and a release candidate. |
Method | test_base |
The base method returns just "NEXT" when NEXT is the major version. |
Method | test_base |
The base version includes 'postX' for versions with postreleases. |
Method | test_base |
The base version includes 'rcX' for versions with prereleases. |
Method | test_base |
The base version includes 'rcX' for versions with prereleases. |
Method | test_comparing |
The value specified as the dev release is used in version comparisons. |
Method | test_comparing |
The value specified as the dev release and release candidate is used in version comparisons. |
Method | test_comparing |
The value specified as the dev release and release candidate is used in version comparisons. |
Method | test_comparing |
Dev releases are always greater than postreleases based on previous releases. |
Method | test_comparing |
Dev releases are always less than versions without dev releases. |
Method | test_comparing |
NEXT releases are always larger than numbered releases. |
Method | test_comparing |
NEXT releases are equal to each other. |
Method | test_comparing |
The value specified as the postrelease is used in version comparisons. |
Method | test_comparing |
Post releases are always greater than versions without post releases. |
Method | test_comparing |
Prereleases are always less than versions without prereleases. |
Method | test_comparing |
The value specified as the release candidate is used in version comparisons. |
Method | test_comparing |
Release Candidates are always less than versions without release candidates. |
Method | test_disallow |
The package names of the Version objects need to be the same. |
Method | test_get |
getVersionString returns a string with the package name and the short version number. |
Method | test_get |
getVersionString includes the dev release, if any. |
Method | test_get |
getVersionString includes the dev release and postrelease, if any. |
Method | test_get |
getVersionString includes the dev release and release candidate, if any. |
Method | test_get |
getVersionString includes the postrelease, if any. |
Method | test_get |
getVersionString includes the prerelease as a release candidate, if any. |
Method | test_get |
getVersionString includes the release candidate, if any. |
Method | test_inf |
_inf is greater than any other object. |
Method | test_inf |
_inf is equal to _inf . |
Method | test_local |
The local version is the same as the short version. |
Method | test_ |
NEXT releases must always have the rest of the numbers set to 0. |
Method | test_not |
Comparing a Version to some other object type results in NotImplemented. |
Method | test_prerelease |
Accessing 'prerelease' on a Version is deprecated. |
Method | test_prerelease |
Passing 'prerelease' to Version is deprecated. |
Method | test_rc |
Release Candidates are equal to prereleases. |
Method | test_rc |
Release Candidate and prerelease can't both be given. |
Method | test |
Calling repr on a version returns a human-readable string representation of the version. |
Method | test_repr |
Calling repr on a version with a dev release returns a human-readable string representation of the version including the dev release. |
Method | test_repr |
Calling repr on a version with a postrelease returns a human-readable string representation of the version including the postrelease. |
Method | test_repr |
Calling repr on a version with a prerelease returns a human-readable string representation of the version including the prerelease as a release candidate.. |
Method | test_repr |
Calling repr on a version with a release candidate returns a human-readable string representation of the version including the rc. |
Method | test |
Calling str on a version returns a human-readable string representation of the version. |
Method | test_str |
Calling str on a version with a dev release includes the dev release. |
Method | test_str |
Calling str on a version with a postrelease and dev release includes the postrelease and the dev release. |
Method | test_str |
Calling str on a version with a release candidate and dev release includes the release candidate and the dev release. |
Method | test_str |
Calling str on a version with a postrelease includes the postrelease. |
Method | test_str |
Calling str on a version with a prerelease includes the prerelease as a release candidate. |
Method | test_str |
Calling str on a version with a release candidate includes the release candidate. |
Method | test_version |
Versions can be compared for equality and order. |
Method | test_version |
Version package names are case insensitive. |
Method | test_version |
Versions can be compared with non-versions. |
Method | test |
Undocumented |
Calling repr on a version with a dev release returns a human-readable string representation of the version including the dev release.
Calling repr on a version with a postrelease returns a human-readable string representation of the version including the postrelease.
Calling repr on a version with a prerelease returns a human-readable string representation of the version including the prerelease as a release candidate..
Calling repr on a version with a release candidate returns a human-readable string representation of the version including the rc.
Calling str on a version with a postrelease and dev release includes the postrelease and the dev release.
Calling str on a version with a release candidate and dev release includes the release candidate and the dev release.
def test_versionComparisonNonVersion(self): ¶
Versions can be compared with non-versions.