def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def test_ccode_settings():
    raises(TypeError, lambda: ccode(sin(x), method="garbage"))