Beispiel #1
0
def test_op_args():
    print(op_args(add(1, 2, 3)))
    assert op_args(add(1, 2, 3)) == (Add, (1, 2, 3))
    assert op_args('foo') == (None, None)
Beispiel #2
0
def test_op_args():
    print op_args(add(1,2,3), op_registry)
    assert op_args(add(1,2,3), op_registry) == (add, (1,2,3))
    assert op_args('foo') == (None, None)
Beispiel #3
0
def test_op_args():
    print(op_args(add(1, 2, 3)))
    assert op_args(add(1, 2, 3)) == (Add, (1, 2, 3))
    assert op_args('foo') == (None, None)