@mock_ec2
def test_describe_dhcp_options():
 conn = boto.connect_vpc(u'the_key', u'the_secret')
 dhcp_option = conn.create_dhcp_options()
 dhcp_options = conn.get_all_dhcp_options([dhcp_option.id])
 dhcp_options.should.be.length_of(1)
 dhcp_options = conn.get_all_dhcp_options()
 dhcp_options.should.be.length_of(1)

@ mock_ec2 def test_describe_dhcp_options ( ) : conn = boto . connect_vpc ( u'the_key' , u'the_secret' ) dhcp_option = conn . create_dhcp_options ( ) dhcp_options = conn . get_all_dhcp_options ( [ dhcp_option . id ] ) dhcp_options . should . be . length_of ( 1 ) dhcp_options = conn . get_all_dhcp_options ( ) dhcp_options . should . be . length_of ( 1 )
test dhcp options lookup by id .