

def test_bogus_option_update(self):
    sync_table(ModelWithTableProperties)
    option = 'no way will this ever be an option'
    try:
        ModelWithTableProperties.__options__[option] = 'what was I thinking?'
        self.assertRaisesRegexp(KeyError, ('Invalid table option.*%s.*' % option), sync_table, ModelWithTableProperties)
    finally:
        ModelWithTableProperties.__options__.pop(option, None)

dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/management/test_management.py TablePropertiesTests.test_bogus_option_update/original