def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def test_ccode_exceptions():
    assert ccode(ceiling(x)) == "ceil(x)"
    assert ccode(Abs(x)) == "fabs(x)"
    assert ccode(gamma(x)) == "tgamma(x)"