Пример #1
0
def test_print_maps3(capsys):
    # just make sure there are no errors
    brewer2mpl.print_maps('sequential', 6)
    out, err = capsys.readouterr()
    assert out
Пример #2
0
def test_print_maps_raises():
    with pytest.raises(ValueError):
        brewer2mpl.print_maps(number=6)
Пример #3
0
def test_print_maps1(capsys):
    # just make sure there are no errors
    brewer2mpl.print_maps()
    out, err = capsys.readouterr()
    assert out