func (s *controllerSuite) checkEnvironmentMatches(c *gc.C, env params.Model, expected *state.Model) { c.Check(env.Name, gc.Equals, expected.Name()) c.Check(env.UUID, gc.Equals, expected.UUID()) c.Check(env.OwnerTag, gc.Equals, expected.Owner().String()) }
func (s *modelManagerSuite) checkModelMatches(c *gc.C, env params.Model, expected *state.Model) { c.Check(env.Name, gc.Equals, expected.Name()) c.Check(env.UUID, gc.Equals, expected.UUID()) c.Check(env.OwnerTag, gc.Equals, expected.Owner().String()) }
func (s *ModelUserSuite) checkSameModel(c *gc.C, env1, env2 *state.Model) { c.Check(env1.Name(), gc.Equals, env2.Name()) c.Check(env1.UUID(), gc.Equals, env2.UUID()) }