def test_print_maps_by_type_raises(): with pytest.raises(ValueError): brewer2mpl.print_maps_by_type('notarealtype')
def test_print_maps_by_type2(capsys): # just make sure there are no errors brewer2mpl.print_maps_by_type('qualitative', number=6) out, err = capsys.readouterr() assert out