

def test_replica_settings_are_inherited(self):
    rds_instance = rds.DBInstance('SomeTitle', AllocatedStorage=1, DBInstanceClass='db.m1.small', Engine='MySQL', SourceDBInstanceIdentifier='SomeSourceDBInstanceIdentifier', BackupRetentionPeriod='1', DBName='SomeName', MasterUsername='SomeUsername', MasterUserPassword='SomePassword', PreferredBackupWindow='10:00-11:00', MultiAZ=True, DBSnapshotIdentifier='SomeDBSnapshotIdentifier', DBSubnetGroupName='SomeDBSubnetGroupName')
    with self.assertRaisesRegexp(ValueError, "BackupRetentionPeriod, DBName, DBSnapshotIdentifier, DBSubnetGroupName, MasterUserPassword, MasterUsername, MultiAZ, PreferredBackupWindow properties can't be provided when SourceDBInstanceIdentifier is present AWS::RDS::DBInstance."):
        rds_instance.JSONrepr()

dataset/ETHPy150Open cloudtools/troposphere/tests/test_rds.py TestRDS.test_replica_settings_are_inherited/original