#NEWLINE# @ mock_ec2 #NEWLINE# @ mock_rds #NEWLINE# def test_add_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# subnet1 = vpc_conn . create_subnet ( vpc . id , '10.1.0.0/24' ) #NEWLINE# subnet2 = vpc_conn . create_subnet ( vpc . id , '10.2.0.0/24' ) #NEWLINE# subnet_ids = [ subnet1 . id , subnet2 . id ] #NEWLINE# conn = boto . rds . connect_to_region ( 'us-west-2' ) #NEWLINE# subnet_group = conn . create_db_subnet_group ( 'db_subnet' , 'my db subnet' , subnet_ids ) #NEWLINE# subnet_group . name . should . equal ( 'db_subnet' ) #NEWLINE# subnet_group . description . should . equal ( 'my db subnet' ) #NEWLINE# list ( subnet_group . subnet_ids ) . should . equal ( subnet_ids )