~rogpeppe/juju-core/themue-058-debug-log-api

« back to all changes in this revision

Viewing changes to environs/tools/urls_test.go

  • Committer: Frank Mueller
  • Date: 2014-01-21 08:46:24 UTC
  • mfrom: (2152.1.76 juju-core)
  • Revision ID: frank.mueller@canonical.com-20140121084624-rv32dv6ufzul9h1b
debugger: merged trunk and added access to debugger API facade

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        c.Assert(haveExpectedSources, jc.IsTrue)
89
89
        c.Assert(haveExpectedSources, jc.IsTrue)
90
90
}
 
91
 
 
92
func (s *URLsSuite) TestToolsURL(c *gc.C) {
 
93
        for source, expected := range map[string]string{
 
94
                "":           "",
 
95
                "foo":        "file://foo/tools",
 
96
                "/home/foo":  "file:///home/foo/tools",
 
97
                "file://foo": "file://foo",
 
98
                "http://foo": "http://foo",
 
99
        } {
 
100
                URL, err := tools.ToolsURL(source)
 
101
                c.Assert(err, gc.IsNil)
 
102
                c.Assert(URL, gc.Equals, expected)
 
103
        }
 
104
}