~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to charm/dir_test.go

  • Committer: Gustavo Niemeyer
  • Date: 2011-09-24 15:21:23 UTC
  • Revision ID: gustavo@niemeyer.net-20110924152123-aytdvquwlbmnv3tj
Applied the juju/charm renaming to the Go code base.

Dropped need for the silly "header" field in metadata.yaml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package formula_test
 
1
package charm_test
2
2
 
3
3
import (
4
4
        "archive/zip"
5
5
        . "launchpad.net/gocheck"
6
 
        "launchpad.net/ensemble/go/formula"
 
6
        "launchpad.net/juju/go/charm"
7
7
        "os"
8
8
        "path/filepath"
9
9
)
14
14
 
15
15
func (s *S) TestReadDir(c *C) {
16
16
        path := repoDir("dummy")
17
 
        dir, err := formula.ReadDir(path)
 
17
        dir, err := charm.ReadDir(path)
18
18
        c.Assert(err, IsNil)
19
19
        checkDummy(c, dir, path)
20
20
}
21
21
 
22
22
func (s *S) TestBundleTo(c *C) {
23
 
        dir, err := formula.ReadDir(repoDir("dummy"))
 
23
        dir, err := charm.ReadDir(repoDir("dummy"))
24
24
        c.Assert(err, IsNil)
25
25
 
26
26
        path := filepath.Join(c.MkDir(), "bundle.charm")
49
49
        reader, err := metaf.Open()
50
50
        c.Assert(err, IsNil)
51
51
        defer reader.Close()
52
 
        meta, err := formula.ReadMeta(reader)
 
52
        meta, err := charm.ReadMeta(reader)
53
53
        c.Assert(err, IsNil)
54
54
        c.Assert(meta.Name, Equals, "dummy")
55
55
}