def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def test_ccode_settings():
    raises(TypeError, lambda: ccode(sin(x), method="garbage"))