~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/jujutest/test.go

  • Committer: Roger Peppe
  • Date: 2011-12-15 18:54:31 UTC
  • mfrom: (19.5.4 go-juju-ec2-operations)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: roger.peppe@canonical.com-20111215185431-tjuxi6bmg1mswcwg
renameĀ environ->environs

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
import (
4
4
        . "launchpad.net/gocheck"
5
 
        "launchpad.net/juju/go/juju"
 
5
        "launchpad.net/juju/go/environs"
6
6
)
7
7
 
8
8
// Tests is a gocheck suite containing tests verifying
9
9
// juju functionality against the environment with Name that
10
10
// must exist within Environs.
11
11
type Tests struct {
12
 
        Environs *juju.Environs
 
12
        Environs *environs.Environs
13
13
        Name     string
14
14
 
15
 
        environs []juju.Environ
 
15
        environs []environs.Environ
16
16
}
17
17
 
18
 
func (t *Tests) open(c *C) juju.Environ {
 
18
func (t *Tests) open(c *C) environs.Environ {
19
19
        e, err := t.Environs.Open(t.Name)
20
20
        c.Assert(err, IsNil, Bug("opening environ %q", t.Name))
21
21
        c.Assert(e, NotNil)