juju/api/usermanager: add UserInfo

UserInfo was recently added to the server API. This PR adds the client side UserInfo method.
yep, fixed.


On 16/06/14 15:04, Menno Smits wrote:
>
> In state/api/usermanager/client_test.go:
>
> > +	}
> > +
> > +	c.Assert(obtained, gc.DeepEquals, expected)
> > +}
> > +
> > +func (s *usermanagerSuite) TestUserInfoNoResults(c *gc.C) {
> > +	usermanager.Call = func(st *api.State, method string, args, result interface{}) error {
> > +		return nil
> > +	}
> > +	tag := names.NewUserTag("foobar")
> > +	_, err := s.usermanager.UserInfo(tag.String())
> > +	c.Assert(err, gc.ErrorMatches, "expected 1 result, got 0")
> > +}
> > +
> > +func (s *usermanagerSuite) TestUserInfoMoreThanOneResult(c *gc.C) {
> > +	usermanager.Call = func(st *api.State, method string, args, result interface{}) error {
>
> here too obviously
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/juju/juju/pull/91/files#r13790934>.
>