def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def test_ccode_settings():
    raises(TypeError, lambda: ccode(sin(x), method="garbage"))