Exemplo n.º 1
0
def test_chunk_invalid(n):
    with pytest.raises(ValueError):
        list(utils.chunk([], n))
Exemplo n.º 2
0
def test_chunk_invalid(n):
    with pytest.raises(ValueError):
        list(utils.chunk([], n))
Exemplo n.º 3
0
def test_chunk(elems, n, expected):
    assert list(utils.chunk(elems, n)) == expected
Exemplo n.º 4
0
def test_chunk(elems, n, expected):
    assert list(utils.chunk(elems, n)) == expected