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