Exemplo n.º 1
0
func (s *S) TestPlans(c *gocheck.C) {
	storage, err := Conn()
	c.Assert(err, gocheck.IsNil)
	plans := storage.Plans()
	plansc := storage.Collection("plans")
	c.Assert(plans, gocheck.DeepEquals, plansc)
}
Exemplo n.º 2
0
func (s *S) TestPools(c *check.C) {
	storage, err := Conn()
	c.Assert(err, check.IsNil)
	defer storage.Close()
	pools := storage.Pools()
	poolsc := storage.Collection("pool")
	c.Assert(pools, check.DeepEquals, poolsc)
}