Exemplo n.º 1
0
 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')
Exemplo n.º 2
0
 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')
Exemplo n.º 3
0
 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')