func (s *ComplexGroupSuite) TestGetDateTimeRfc1123Complex(c *chk.C) { res, err := complexPrimitiveClient.GetDateTimeRfc1123() c.Assert(err, chk.IsNil) c.Assert(*res.Field, chk.DeepEquals, utils.ToDateTimeRFC1123("Mon, 01 Jan 0001 00:00:00 GMT")) c.Assert(*res.Now, chk.DeepEquals, utils.ToDateTimeRFC1123("Mon, 18 May 2015 11:38:00 GMT")) }
func (s *ComplexGroupSuite) TestPutDateTimeRFC1123Complex(c *chk.C) { dt1, dt2 := utils.ToDateTimeRFC1123("Mon, 01 Jan 0001 00:00:00 GMT"), utils.ToDateTimeRFC1123("Mon, 18 May 2015 11:38:00 GMT") _, err := complexPrimitiveClient.PutDateTimeRfc1123(Datetimerfc1123Wrapper{Field: &dt1, Now: &dt2}) c.Assert(err, chk.IsNil) }
func (s *HeaderSuite) TestHeaderParamDateTimeRFC1123Min(c *chk.C) { d := utils.ToDateTimeRFC1123("Mon, 01 Jan 0001 00:00:00 GMT") _, err := headerClient.ParamDatetimeRfc1123("min", &d) c.Assert(err, chk.IsNil) }
func (s *HeaderSuite) TestHeaderParamDateTimeRFC1123Valid(c *chk.C) { d := utils.ToDateTimeRFC1123("Wed, 01 Jan 2010 12:34:56 GMT") _, err := headerClient.ParamDatetimeRfc1123("valid", &d) c.Assert(err, chk.IsNil) }