Exemple #1
0
func (s *AddressSuite) TestInstanceAddressRoundtrips(c *gc.C) {
	instanceaddress := instance.Address{"0.0.0.0", instance.Ipv4Address,
		"net", instance.NetworkUnknown}
	stateaddress := state.NewAddress(instanceaddress)
	addr := stateaddress.InstanceAddress()
	c.Assert(addr, gc.Equals, instanceaddress)
}
Exemple #2
0
func (s *AddressSuite) TestNewAddress(c *gc.C) {
	instanceaddress := instance.Address{"0.0.0.0", instance.Ipv4Address,
		"net", instance.NetworkUnknown}
	stateaddress := state.NewAddress(instanceaddress)
	c.Assert(stateaddress, gc.NotNil)
}