func checkIdAndAttempt(c *gc.C, mig state.ModelMigration, expected int) { c.Check(mig.Id(), gc.Equals, fmt.Sprintf("%s:%d", mig.ModelUUID(), expected)) attempt, err := mig.Attempt() c.Assert(err, jc.ErrorIsNil) c.Check(attempt, gc.Equals, expected) }