Пример #1
0
func (suite *StateSuite) TestComposeAddressesSuffixesAddresses(c *C) {
	c.Check(
		environs.ComposeAddresses([]string{"onehost", "otherhost"}, 1957),
		DeepEquals,
		[]string{"onehost:1957", "otherhost:1957"})
}
Пример #2
0
func (suite *StateSuite) TestComposeAddressesAcceptsNil(c *C) {
	c.Check(environs.ComposeAddresses(nil, 1433), DeepEquals, []string{})
}