def test_migration_from_1_to_2(self):
    self._old_settings[SettingsMigrator.SETTINGS_VERSION] = 1
    self.migrate()
    self.assertFalse(self._from_0_to_1_called)
    self.assertTrue(self._from_1_to_2_called)
    self.assertTrue(self._merge_called)
def test_migration_from_1_to_2(self):
    self._old_settings[SettingsMigrator.SETTINGS_VERSION] = 1
    self.migrate()
    self.assertFalse(self._from_0_to_1_called)
    self.assertTrue(self._from_1_to_2_called)
    self.assertTrue(self._merge_called)