@mock_ec2
def test_dhcp_options_associate():
 conn = boto.connect_vpc(u'the_key', u'the_secret')
 dhcp_options = conn.create_dhcp_options(SAMPLE_DOMAIN_NAME, SAMPLE_NAME_SERVERS)
 vpc = conn.create_vpc(u'10.0.0.0/16')
 rval = conn.associate_dhcp_options(dhcp_options.id, vpc.id)
 rval.should.be.equal(True)

@ mock_ec2 def test_dhcp_options_associate ( ) : conn = boto . connect_vpc ( u'the_key' , u'the_secret' ) dhcp_options = conn . create_dhcp_options ( SAMPLE_DOMAIN_NAME , SAMPLE_NAME_SERVERS ) vpc = conn . create_vpc ( u'10.0.0.0/16' ) rval = conn . associate_dhcp_options ( dhcp_options . id , vpc . id ) rval . should . be . equal ( True )
associate dhcp option .