armi.migration.tests.test_migration_base module

Test base migration classes.

class armi.migration.tests.test_migration_base.MockMigration1(stream=None, path=None)[source]

Bases: Migration

Migration defined for unit tests only.

property fromVersion
property toVersion
class armi.migration.tests.test_migration_base.MockSettingsMigration1(stream=None, path=None)[source]

Bases: SettingsMigration

SettingsMigration defined for unit tests only.

property fromVersion
property toVersion
class armi.migration.tests.test_migration_base.BrokenDatabaseMigration1(stream=None, path=None)[source]

Bases: DatabaseMigration

For testing purposes only, fromVersion and toVersion are invalid.

property fromVersion
property toVersion
class armi.migration.tests.test_migration_base.TestMigrationBases(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_basicValidation()[source]
class armi.migration.tests.test_migration_base.TestSettingsMigration(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_loadStreamFromPath()[source]