

def test_set_table_properties(self):
    sync_table(ModelWithTableProperties)
    expected = {
        'bloom_filter_fp_chance': 0.76328,
        'comment': 'TxfguvBdzwROQALmQBOziRMbkqVGFjqcJfVhwGR',
        'gc_grace_seconds': 2063,
        'read_repair_chance': 0.17985,
    }
    options = management._get_table_metadata(ModelWithTableProperties).options
    self.assertEqual(dict([(k, options.get(k)) for k in expected.keys()]), expected)

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