@mock_ec2
def test_describe_dhcp_options_invalid_id():
 conn = boto.connect_vpc(u'the_key', u'the_secret')
 with assert_raises(EC2ResponseError) as cm:
  conn.get_all_dhcp_options([u'1'])
 cm.exception.code.should.equal(u'InvalidDhcpOptionID.NotFound')
 cm.exception.status.should.equal(400)
 cm.exception.request_id.should_not.be.none

@ mock_ec2 def test_describe_dhcp_options_invalid_id ( ) : conn = boto . connect_vpc ( u'the_key' , u'the_secret' ) with assert_raises ( EC2ResponseError ) as cm : conn . get_all_dhcp_options ( [ u'1' ] ) cm . exception . code . should . equal ( u'InvalidDhcpOptionID.NotFound' ) cm . exception . status . should . equal ( 400 ) cm . exception . request_id . should_not . be . none
get error on invalid dhcp_option_id lookup .