

def test_it_rds_instances_require_either_a_snapshot_or_credentials(self):
    rds_instance = rds.DBInstance('SomeTitle', AllocatedStorage=1, DBInstanceClass='db.m1.small', Engine='MySQL')
    with self.assertRaisesRegexp(ValueError, 'Either \\(MasterUsername and MasterUserPassword\\) or DBSnapshotIdentifier are required'):
        rds_instance.JSONrepr()

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