#NEWLINE# @ mock_ec2 #NEWLINE# def test_create_dhcp_options_invalid_options( ) : #NEWLINE# #INDENT# 'Create invalid dhcp options' #NEWLINE# conn = boto . connect_vpc ( 'the_key' , 'the_secret' ) #NEWLINE# servers = [ 'f' , 'f' , 'f' , 'f' , 'f' ] #NEWLINE# with assert_raises ( EC2ResponseError ) as cm : #NEWLINE# #INDENT# conn . create_dhcp_options ( ntp_servers = servers ) #NEWLINE# #UNINDENT# cm . exception . code . should . equal ( 'InvalidParameterValue' ) #NEWLINE# cm . exception . status . should . equal ( 400 ) #NEWLINE# cm . exception . request_id . should_not . be . none #NEWLINE# with assert_raises ( EC2ResponseError ) as cm : #NEWLINE# #INDENT# conn . create_dhcp_options ( netbios_node_type = '0' ) #NEWLINE# #UNINDENT# cm . exception . code . should . equal ( 'InvalidParameterValue' ) #NEWLINE# cm . exception . status . should . equal ( 400 ) #NEWLINE# conn . exception . request_id . should_not . be . none