func (s *S) TestContainerGetAddress(c *check.C) { container := container.Container{Id: "id123", HostAddr: "10.10.10.10", HostPort: "49153"} address := container.Address() expected := "http://10.10.10.10:49153" c.Assert(address.String(), check.Equals, expected) }