func (t *DiskManagerSuite) TestSharedToolsDir(c *gc.C) { manager := tools.NewDiskManager("/var/lib/juju") dir := manager.SharedToolsDir(version.MustParseBinary("1.2.3-precise-amd64")) c.Assert(dir, gc.Equals, "/var/lib/juju/tools/1.2.3-precise-amd64") }
func (s *DiskManagerSuite) SetUpTest(c *gc.C) { s.LoggingSuite.SetUpTest(c) s.dataDir = c.MkDir() s.manager = tools.NewDiskManager(s.dataDir) }