コード例 #1
0
ファイル: test_script.py プロジェクト: iCodeIN/verchew
 def when_no_output():
     expect(get_version('echo', argument='')) == ""
コード例 #2
0
ファイル: test_script.py プロジェクト: iCodeIN/verchew
 def with_no_argument():
     expect(get_version('pip', argument='')).contains("Usage:")
コード例 #3
0
ファイル: test_script.py プロジェクト: iCodeIN/verchew
 def when_found():
     expect(get_version('python')).contains("Python ")
コード例 #4
0
ファイル: test_script.py プロジェクト: iCodeIN/verchew
 def with_custom_argument():
     expect(get_version('python', argument='-V')).contains("Python ")
コード例 #5
0
ファイル: test_script.py プロジェクト: iCodeIN/verchew
 def when_missing():
     expect(get_version('foobar')) == "sh: command not found: foobar"