File: parameters_test.go

package info (click to toggle)
golang-github-masterzen-winrm 0.0~git20200615.c42b513-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 288 kB
  • sloc: makefile: 28; sh: 14
file content (19 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package winrm

import (
	. "gopkg.in/check.v1"
)

func (s *WinRMSuite) TestDefaultParameters(c *C) {
	params := DefaultParameters
	c.Assert(params.Locale, Equals, "en-US")
	c.Assert(params.Timeout, Equals, "PT60S")
	c.Assert(params.EnvelopeSize, Equals, 153600)
}

func (s *WinRMSuite) TestParameters(c *C) {
	params := NewParameters("PT120S", "fr-FR", 128)
	c.Assert(params.Locale, Equals, "fr-FR")
	c.Assert(params.Timeout, Equals, "PT120S")
	c.Assert(params.EnvelopeSize, Equals, 128)
}