def test_migrate_aggregate_reset_autoincrement_no_aggregates(self): # NOTE(danms): This validates the "or 0" default if there are no # aggregates (and thus no max id). match, done = aggregate_obj.migrate_aggregate_reset_autoincrement( self.context, 0) self.assertEqual(0, match) self.assertEqual(0, done)
def test_migrate_aggregate_reset_autoincrement(self): agg = aggregate_obj.Aggregate(self.context, name='foo') agg.create() match, done = aggregate_obj.migrate_aggregate_reset_autoincrement( self.context, 0) self.assertEqual(0, match) self.assertEqual(0, done)