def test_feat_factor_capped():
    gold_filtsz = [1, 2, 3, 4, 5]
    feat_factor = 10
    gold_nfeats = [10, 20, 30, 30, 30]
    (filtsz, nfeats) = calc_nfeats(gold_filtsz, feat_factor, 30)
    assert (filtsz == gold_filtsz)
    assert (nfeats == gold_nfeats)
def test_feat_factor_capped():
    gold_filtsz = [1, 2, 3, 4, 5]
    feat_factor = 10
    gold_nfeats = [10, 20, 30, 30, 30]
    (filtsz, nfeats) = calc_nfeats(gold_filtsz, feat_factor, 30)
    assert (filtsz == gold_filtsz)
    assert (nfeats == gold_nfeats)