func addModelUsers(c *gc.C, st *state.State) (expected []*state.ModelUser) { // get the model owner testAdmin := names.NewUserTag("test-admin") owner, err := st.ModelUser(testAdmin) c.Assert(err, jc.ErrorIsNil) f := factory.NewFactory(st) return []*state.ModelUser{ // we expect the owner to be an existing model user owner, // add new users to the model f.MakeModelUser(c, nil), f.MakeModelUser(c, nil), f.MakeModelUser(c, nil), } }