func (s *supportedSeriesSuite) TestOSSupportedSeries(c *gc.C) { version.SetSeriesVersions(map[string]string{ "trusty": "14.04", "utopic": "14.10", "win7": "win7", "win81": "win81", }) series := version.OSSupportedSeries(version.Ubuntu) c.Assert(series, jc.SameContents, []string{"trusty", "utopic"}) series = version.OSSupportedSeries(version.Windows) c.Assert(series, jc.SameContents, []string{"win7", "win81"}) }
func (s *supportedSeriesSuite) SetUpTest(c *gc.C) { s.cleanup = version.SetSeriesVersions(make(map[string]string)) }
func (s *linuxVersionSuite) SetUpTest(c *gc.C) { cleanup := version.SetSeriesVersions(make(map[string]string)) s.AddCleanup(func(*gc.C) { cleanup() }) }