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

« back to all changes in this revision

Viewing changes to charm/repo_test.go

  • Committer: Frank Mueller
  • Date: 2014-01-23 14:14:49 UTC
  • mfrom: (2152.1.95 juju-core)
  • Revision ID: frank.mueller@canonical.com-20140123141449-b30l57y7gs3wjkpw
debugger: merged trunk and fixed permission and interface problems

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
        c.Assert(info[0].Warnings, gc.DeepEquals, []string{"foolishness"})
188
188
}
189
189
 
 
190
func (s *StoreSuite) TestInfoDNSError(c *gc.C) {
 
191
        store := charm.NewStore("http://example.invalid")
 
192
        charmURL := charm.MustParseURL("cs:series/good")
 
193
        resp, err := store.Info(charmURL)
 
194
        c.Assert(resp, gc.IsNil)
 
195
        expect := `Cannot access the charm store. Are you connected to the internet. Error details:.*`
 
196
        c.Assert(err, gc.ErrorMatches, expect)
 
197
}
 
198
 
190
199
func (s *StoreSuite) TestEvent(c *gc.C) {
191
200
        charmURL := charm.MustParseURL("cs:series/good")
192
201
        event, err := s.store.Event(charmURL, "")