github.com/mattyw/juju@v0.0.0-20140610034352-732aecd63861/provider/azure/azure_test.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package azure 5 6 import ( 7 stdtesting "testing" 8 9 gc "launchpad.net/gocheck" 10 11 envtesting "github.com/juju/juju/environs/testing" 12 "github.com/juju/juju/testing" 13 ) 14 15 func TestAzureProvider(t *stdtesting.T) { 16 gc.TestingT(t) 17 } 18 19 type providerSuite struct { 20 testing.BaseSuite 21 envtesting.ToolsFixture 22 restoreTimeouts func() 23 } 24 25 var _ = gc.Suite(&providerSuite{}) 26 27 func (s *providerSuite) SetUpSuite(c *gc.C) { 28 s.BaseSuite.SetUpSuite(c) 29 s.restoreTimeouts = envtesting.PatchAttemptStrategies() 30 } 31 32 func (s *providerSuite) TearDownSuite(c *gc.C) { 33 s.restoreTimeouts() 34 s.BaseSuite.TearDownSuite(c) 35 } 36 37 func (s *providerSuite) SetUpTest(c *gc.C) { 38 s.BaseSuite.SetUpTest(c) 39 s.ToolsFixture.SetUpTest(c) 40 } 41 42 func (s *providerSuite) TearDownTest(c *gc.C) { 43 s.ToolsFixture.TearDownTest(c) 44 s.BaseSuite.TearDownTest(c) 45 }