func (t *DiskManagerSuite) TestSharedToolsDir(c *gc.C) { manager := agenttools.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.BaseSuite.SetUpTest(c) s.dataDir = c.MkDir() s.manager = agenttools.NewDiskManager(s.dataDir) }