我正在尝试测试一个接受输入的函数,stdin我目前正在测试这样的东西:
stdin
cat /usr/share/dict/words | ./spellchecker.py
在测试自动化的名义,有什么方法pyunit可以伪输入raw_input()?
pyunit
raw_input()
python linux python-unittest
linux ×1
python ×1
python-unittest ×1