예제 #1
0
    def test_classes_raise_ValueError(self):
        class Foo:
            def __init__(self):
                pass

        with pytest.raises(ValueError):
            curry(Foo)
예제 #2
0
 def test_curry_refuses_None(self):
     """Ensure that currypy.curry refuses None"""
     with pytest.raises(TypeError):
         curry(None)