예제 #1
0
func (s *FacadeSuite) TestNotModelManager(c *gc.C) {
	facade, err := servicescaler.NewFacade(nil, nil, auth(false))
	c.Check(err, gc.Equals, common.ErrPerm)
	c.Check(facade, gc.IsNil)
}
예제 #2
0
func (s *FacadeSuite) TestModelManager(c *gc.C) {
	facade, err := servicescaler.NewFacade(nil, nil, auth(true))
	c.Check(err, jc.ErrorIsNil)
	c.Check(facade, gc.NotNil)
}