~themue/juju-core/053-env-more-script-friendly

« back to all changes in this revision

Viewing changes to environs/storage_test.go

Merge trunk and resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package environs_test
 
2
 
 
3
import (
 
4
        . "launchpad.net/gocheck"
 
5
        "launchpad.net/juju-core/environs"
 
6
)
 
7
 
 
8
type EmptyStorageSuite struct{}
 
9
 
 
10
var _ = Suite(&EmptyStorageSuite{})
 
11
 
 
12
func (s *EmptyStorageSuite) TestGet(c *C) {
 
13
        f, err := environs.EmptyStorage.Get("anything")
 
14
        c.Assert(f, IsNil)
 
15
        c.Assert(err, ErrorMatches, `file "anything" not found`)
 
16
}
 
17
 
 
18
func (s *EmptyStorageSuite) TestURL(c *C) {
 
19
        url, err := environs.EmptyStorage.URL("anything")
 
20
        c.Assert(url, Equals, "")
 
21
        c.Assert(err, ErrorMatches, `file "anything" not found`)
 
22
}
 
23
 
 
24
func (s *EmptyStorageSuite) TestList(c *C) {
 
25
        names, err := environs.EmptyStorage.List("anything")
 
26
        c.Assert(names, IsNil)
 
27
        c.Assert(err, IsNil)
 
28
}