armi.migration.tests.test_m0_1_6 module

Test Locationlabel migration.

class armi.migration.tests.test_m0_1_6.TestMigration(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_locationLabelMigration()[source]

Make a setting with an old value and make sure it migrates to expected new value.

test_noMigrationIfVersion()[source]

Ensure that no migration happens if the version of the DB is newer than the migration ‘toVersion’.

This test checks the specific case of ConvertAlphanumLocationSettingsToNum, which should only be applied until v0.1.7.