def test_use_nfeats_list():
    filtsz = [random.randint(1, 10) for _ in range(random.randint(2, 6))]
    nfeats = [random.randint(1, 10) for _ in range(len(filtsz))]
    with pytest.raises(AssertionError):
        (_, nfeat) = calc_nfeats(filtsz, None, None, nfeats=nfeats)
def test_use_nfeats_list():
    filtsz = [random.randint(1, 10) for _ in range(random.randint(2, 6))]
    nfeats = [random.randint(1, 10) for _ in range(len(filtsz))]
    with pytest.raises(AssertionError):
        (_, nfeat) = calc_nfeats(filtsz, None, None, nfeats=nfeats)