@mock_ec2
def test_eip_allocate_invalid_domain():
 conn = boto.connect_ec2(u'the_key', u'the_secret')
 with assert_raises(EC2ResponseError) as cm:
  conn.allocate_address(domain=u'bogus')
 cm.exception.code.should.equal(u'InvalidParameterValue')
 cm.exception.status.should.equal(400)
 cm.exception.request_id.should_not.be.none

@ mock_ec2 def test_eip_allocate_invalid_domain ( ) : conn = boto . connect_ec2 ( u'the_key' , u'the_secret' ) with assert_raises ( EC2ResponseError ) as cm : conn . allocate_address ( domain = u'bogus' ) cm . exception . code . should . equal ( u'InvalidParameterValue' ) cm . exception . status . should . equal ( 400 ) cm . exception . request_id . should_not . be . none
allocate eip invalid domain .