func (s *syslogConfigSuite) assertRsyslogConfigContents(c *gc.C, slConfig *syslog.SyslogConfig, expectedConf string) { data, err := slConfig.Render() c.Assert(err, jc.ErrorIsNil) if len(data) == 0 { c.Fatal("got empty data from render") } d := string(data) if d != expectedConf { diff(c, d, expectedConf) c.Fail() } }
func (s *syslogConfigSuite) assertRsyslogConfigContents(c *gc.C, slConfig *syslog.SyslogConfig, expectedConf string) { data, err := slConfig.Render() c.Assert(err, gc.IsNil) c.Assert(string(data), gc.Equals, expectedConf) }