#NEWLINE# @ mock_ec2 #NEWLINE# @ mock_rds #NEWLINE# def test_describe_database_subnet_group( ) : #NEWLINE# #INDENT# vpc_conn = boto . vpc . connect_to_region ( 'us-west-2' ) #NEWLINE# vpc = vpc_conn . create_vpc ( '10.0.0.0/16' ) #NEWLINE# subnet = vpc_conn . create_subnet ( vpc . id , '10.1.0.0/24' ) #NEWLINE# conn = boto . rds . connect_to_region ( 'us-west-2' ) #NEWLINE# conn . create_db_subnet_group ( 'db_subnet1' , 'my db subnet' , [ vpc . id ] ) #NEWLINE# conn . create_db_subnet_group ( 'db_subnet2' , 'my db subnet' , [ subnet . id ] ) #NEWLINE# list ( conn . get_all_db_subnet_groups ( ) ) . should . have . length_of ( 2 ) #NEWLINE# list ( conn . get_all_db_subnet_groups ( 'db_subnet1' ) ) . should . have . length_of ( 1 ) #NEWLINE# conn . get_all_db_subnet_groups . when . called_with ( 'not-a-subnet' ) . should . throw ( BotoServerError )