

def test_dictionary_ttl_key(self):
    import datetime
    from gcloud.bigtable.column_family import MaxAgeGCRule
    time_to_live = ((24 * 60) * 60)
    max_age = datetime.timedelta(days=1)
    option = {
        'time_to_live': time_to_live,
    }
    result = self._callFUT(option)
    gc_rule = MaxAgeGCRule(max_age)
    self.assertEqual(result, gc_rule)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py Test__parse_family_option.test_dictionary_ttl_key/original