func (s *marshalSuite) TestMarshalProducts(c *gc.C) { products, err := tools.MarshalToolsMetadataProductsJSON(s.streamMetadata, time.Unix(0, 0).UTC()) c.Assert(err, jc.ErrorIsNil) assertProducts(c, products) }
func (s *marshalSuite) TestMarshalProducts(c *gc.C) { products, err := tools.MarshalToolsMetadataProductsJSON(toolMetadataForTesting, time.Unix(0, 0).UTC()) c.Assert(err, gc.IsNil) c.Assert(string(products), gc.Equals, expectedProducts) }