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)
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)