~themue/juju-core/009-local-environ-storage

« back to all changes in this revision

Viewing changes to charm/charm_test.go

  • Committer: John Arbash Meinel
  • Author(s): John A Meinel
  • Date: 2013-02-13 12:38:32 UTC
  • mfrom: (875.1.5 no-symlinks)
  • Revision ID: john@arbash-meinel.com-20130213123832-92qk62e5wjq0fdfm
testing/charms: Remove the series parameter

This change removes some of the symlinks in the working tree (testing/repo/*).
Following on to it, there were a bunch of apis in testing.Charms that took a
series parameter, but all callers were just passing "series" anyway.

All the tests still pass, so I'm pretty happy with the changes.

R=dimitern, gz
CC=
https://codereview.appspot.com/7301073

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
var _ = Suite(&CharmSuite{})
21
21
 
22
22
func (s *CharmSuite) TestRead(c *C) {
23
 
        bPath := testing.Charms.BundlePath(c.MkDir(), "series", "dummy")
 
23
        bPath := testing.Charms.BundlePath(c.MkDir(), "dummy")
24
24
        ch, err := charm.Read(bPath)
25
25
        c.Assert(err, IsNil)
26
26
        c.Assert(ch.Meta().Name, Equals, "dummy")
27
 
        dPath := testing.Charms.DirPath("series", "dummy")
 
27
        dPath := testing.Charms.DirPath("dummy")
28
28
        ch, err = charm.Read(dPath)
29
29
        c.Assert(err, IsNil)
30
30
        c.Assert(ch.Meta().Name, Equals, "dummy")