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

« back to all changes in this revision

Viewing changes to testing/testbase/package_test.go

  • Committer: Tarmac
  • Author(s): Tim Penhey
  • Date: 2013-09-20 03:21:56 UTC
  • mfrom: (1847.1.9 testbase)
  • Revision ID: tarmac-20130920032156-bdcdz4hd9jzpuim3
[r=thumper] Add a testbase package with no juju-core deps.

The base cleanup and logging suites are now there,
as are the patch functions.

A test also exists there to make sure that no juju-core
dependencies creep in.

https://codereview.appspot.com/13694046/

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 testbase_test
 
5
 
 
6
import (
 
7
        "testing"
 
8
 
 
9
        gc "launchpad.net/gocheck"
 
10
 
 
11
        "launchpad.net/juju-core/testing/testbase"
 
12
)
 
13
 
 
14
func Test(t *testing.T) {
 
15
        gc.TestingT(t)
 
16
}
 
17
 
 
18
type DependencySuite struct{}
 
19
 
 
20
var _ = gc.Suite(&DependencySuite{})
 
21
 
 
22
func (*DependencySuite) TestPackageDependencies(c *gc.C) {
 
23
        // This test is to ensure we don't bring in any juju-core dependencies.
 
24
        c.Assert(testbase.FindJujuCoreImports(c, "launchpad.net/juju-core/testing/testbase"),
 
25
                gc.HasLen, 0)
 
26
}