@mock_ec2
def test_create_dhcp_options():
 conn = boto.connect_vpc(u'the_key', u'the_secret')
 dhcp_option = conn.create_dhcp_options(SAMPLE_DOMAIN_NAME, SAMPLE_NAME_SERVERS)
 dhcp_option.options[u'domain-name'][0].should.be.equal(SAMPLE_DOMAIN_NAME)
 dhcp_option.options[u'domain-name-servers'][0].should.be.equal(SAMPLE_NAME_SERVERS[0])
 dhcp_option.options[u'domain-name-servers'][1].should.be.equal(SAMPLE_NAME_SERVERS[1])

@ mock_ec2 def test_create_dhcp_options ( ) : conn = boto . connect_vpc ( u'the_key' , u'the_secret' ) dhcp_option = conn . create_dhcp_options ( SAMPLE_DOMAIN_NAME , SAMPLE_NAME_SERVERS ) dhcp_option . options [ u'domain-name' ] [ 0 ] . should . be . equal ( SAMPLE_DOMAIN_NAME ) dhcp_option . options [ u'domain-name-servers' ] [ 0 ] . should . be . equal ( SAMPLE_NAME_SERVERS [ 0 ] ) dhcp_option . options [ u'domain-name-servers' ] [ 1 ] . should . be . equal ( SAMPLE_NAME_SERVERS [ 1 ] )
create most basic dhcp option .