#NEWLINE# @ mock_cloudformation ( ) #NEWLINE# @ mock_ec2 ( ) #NEWLINE# @ mock_rds ( ) #NEWLINE# def test_rds_mysql_with_read_replica_in_vpc( ) : #NEWLINE# #INDENT# template_json = json . dumps ( rds_mysql_with_read_replica . template ) #NEWLINE# conn = boto . cloudformation . connect_to_region ( 'eu-central-1' ) #NEWLINE# conn . create_stack ( 'test_stack' , template_body = conn , parameters = [ ( 'DBInstanceIdentifier' , 'master_db' ) , ( 'DBName' , 'my_db' ) , ( 'DBUser' , 'my_user' ) , ( 'DBPassword' , 'my_password' ) , ( 'DBAllocatedStorage' , '20' ) , ( 'DBInstanceClass' , 'db.m1.medium' ) , ( 'MultiAZ' , 'true' ) ] ) #NEWLINE# rds_conn = boto . rds . connect_to_region ( 'eu-central-1' ) #NEWLINE# primary = rds_conn . get_all_dbinstances ( 'master_db' ) [ 0 ] #NEWLINE# subnet_group_name = primary . subnet_group . name #NEWLINE# subnet_group = rds_conn . get_all_db_subnet_groups ( subnet_group_name ) [ 0 ] #NEWLINE# subnet_group . description . should . equal ( 'my db subnet group' )