def test_complete_autodelta_other(self): self.sub.type = orm.MigrationType.AUTODELTA self.sub.status = 'OTHER' self.mox.ReplayAll() self.assertEqual(status.get_complete_migration_status(self.migration).computed_status, 'OTHER')
def test_complete_other_empty(self): self.sub.type = 'OTHER' self.sub.status = 'empty' self.mox.ReplayAll() self.assertEqual(status.get_complete_migration_status(self.migration).computed_status, 'in_progress')
def test_complete_autodelta_queued(self): self.sub.type = orm.MigrationType.AUTODELTA self.sub.status = 'queued' self.mox.ReplayAll() self.assertEqual(status.get_complete_migration_status(self.migration).computed_status, 'in_progress')