func (s *fetchDataSuite) assertFetchDataFail(c *gc.C, msg string) { data, _, err := simplestreams.FetchData(s.source, "this.path.doesnt.matter.for.test.either", s.requireSigned) c.Assert(err, gc.ErrorMatches, msg) c.Assert(data, gc.IsNil) s.source.CheckCallNames(c, s.expectedCalls...) }
func (s *fetchDataSuite) assertFetchData(c *gc.C) { data, _, err := simplestreams.FetchData(s.source, "this.path.doesnt.matter.for.test.either", s.requireSigned) c.Assert(err, jc.ErrorIsNil) c.Assert([]byte(s.expectedData), gc.DeepEquals, data) s.source.CheckCallNames(c, s.expectedCalls...) }