Exemple #1
0
func (s *S) TestPlans(c *check.C) {
	storage, err := Conn()
	c.Assert(err, check.IsNil)
	defer storage.Close()
	plans := storage.Plans()
	plansc := storage.Collection("plans")
	c.Assert(plans, check.DeepEquals, plansc)
}
Exemple #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)
}