func (s *payloadSuite) TestFullIDMissingID(c *gc.C) { payload := s.newPayload("spam", "docker") payload.ID = "" id := payload.FullID() c.Check(id, gc.Equals, "spam") }
func (s *payloadSuite) TestFullID(c *gc.C) { payload := s.newPayload("spam", "docker") id := payload.FullID() c.Check(id, gc.Equals, "spam/idspam") }