1
0
python-delegator.py/test_chain.py

7 lines
170 B
Python

import pytest
import delegator
def test_chain():
c = delegator.chain("seq 4 | awk '{ print $0 \" test\"; }'")
assert c.out == '1 test\n2 test\n3 test\n4 test\n'