github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/cmd/juju/block/package_test.go (about)

     1  // Copyright 2012, 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package block_test
     5  
     6  import (
     7  	stdtesting "testing"
     8  
     9  	gc "gopkg.in/check.v1"
    10  
    11  	"github.com/juju/juju/testing"
    12  )
    13  
    14  func TestAll(t *stdtesting.T) {
    15  	testing.MgoTestPackage(t)
    16  }
    17  
    18  type ProtectionCommandSuite struct {
    19  	testing.FakeJujuHomeSuite
    20  }
    21  
    22  func (s *ProtectionCommandSuite) assertErrorMatches(c *gc.C, err error, expected string) {
    23  	c.Assert(
    24  		err,
    25  		gc.ErrorMatches,
    26  		expected)
    27  }