def test_migration_does_not_affect_home(self): logs = get_targets() migrate(logs, dry_run=False) self.project.reload() # Assert that 'home' has same versions as before self.versions = self.project.wiki_pages_versions assert_equal(len(self.versions['home']), 1)
def test_migrate(self): logs = get_targets() migrate(logs, dry_run=False) self.project.reload() # Ensure that wiki pages that were targeted are not in versions for log in logs: node = log.node assert_true(node.title not in self.project.wiki_pages_versions)