~ubuntu-branches/ubuntu/trusty/juju-core/trusty-proposed

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/testing/checkers/bool_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-29 11:40:20 UTC
  • mfrom: (23.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140129114020-ejieitm8smtt5vln
Tags: 1.17.1-0ubuntu2
d/tests/local-provider: Don't fail tests if ~/.juju is present as its
created by the juju version command. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
                c.Logf("test %d. %v == %v is %v", i, test.a, test.b, test.eq)
113
113
                result, msg := jc.DeepEquals.Check([]interface{}{test.a, test.b}, nil)
114
114
                c.Check(result, gc.Equals, test.eq)
115
 
                c.Check(msg, gc.Equals, "")
 
115
                if test.eq {
 
116
                        c.Check(msg, gc.Equals, "")
 
117
                } else {
 
118
                        c.Check(msg, gc.Not(gc.Equals), "")
 
119
                }
116
120
        }
117
121
}