~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/environs/configstore/mem_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2013 Canonical Ltd.
2
 
// Licensed under the AGPLv3, see LICENCE file for details.
3
 
 
4
 
package configstore_test
5
 
 
6
 
import (
7
 
        gc "gopkg.in/check.v1"
8
 
 
9
 
        "github.com/juju/juju/environs/configstore"
10
 
)
11
 
 
12
 
var _ = gc.Suite(&memInterfaceSuite{})
13
 
 
14
 
type memInterfaceSuite struct {
15
 
        interfaceSuite
16
 
}
17
 
 
18
 
func (s *memInterfaceSuite) SetUpSuite(c *gc.C) {
19
 
        s.interfaceSuite.SetUpSuite(c)
20
 
        s.NewStore = func(c *gc.C) configstore.Storage {
21
 
                return configstore.NewMem()
22
 
        }
23
 
}
24
 
 
25
 
func (s *memInterfaceSuite) TestMemInfoLocation(c *gc.C) {
26
 
        memStore := configstore.NewMem()
27
 
        memInfo := memStore.CreateInfo("foo")
28
 
        c.Assert(memInfo.Location(), gc.Equals, "memory")
29
 
}