tribler.test_unit.core.versioning.test_manager

Classes

TestVersioningManager

Tests for the Notifier class.

Module Contents

class tribler.test_unit.core.versioning.test_manager.TestVersioningManager

Bases: ipv8.test.base.TestBase

Tests for the Notifier class.

setUp() None

Create a new versioning manager.

async tearDown() None

Shut down our task manager.

test_get_current_version() None

Check if a normal version can be correctly returned.

test_get_current_version_not_found() None

Check if a value of None is returned as the version, when it cannot be found.

test_get_versions() None

Check if we can find all three versions in our test directory.

test_get_versions_empty() None

Check if an empty list is returned if no versions exist.

async test_check_version_no_version() None

Check if the bleeding edge source does not think it needs to be updated.

async test_check_version_no_responses() None

Check if None is returned when no responses are received.

async test_check_version_latest() None

Check if None is returned when we are already at the latest version.

async test_check_version_latest_old() None

Check if None is returned when we are already at the latest version, in old format.

async test_check_version_newer() None

Check if a newer version is returned when available.

async test_check_version_newer_retry() None

Check if a newer version is returned when available from the backup url.

test_can_upgrade_upgraded() None

Check if we cannot upgrade an already upgraded version.

test_can_upgrade_unsupported() None

Check if we cannot upgrade from an unsupported version.

test_can_upgrade_to_unsupported() None

Check if we cannot upgrade to an unsupported version.

test_can_upgrade_to_current() None

Check if we can upgrade to the currently supported version.

test_can_upgrade_to_current_soft() None

Check if we can upgrade to the currently supported soft version.

For example, the database directory may be (hard) version 8.0 and the actual (soft) version 8.0.3.

test_can_upgrade_to_git() None

Check if we can upgrade to the git version.