Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Covering last line in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacBlanco committed Jun 16, 2016
1 parent dba8c0c commit 45fbd65
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ def test_existing_directory(self):
self.fail('Valid path should pass here')

def test_simple_run(self):
cmd = Shell();
# out = cmd.run('bash --version')
# out = cmd.run('bash', '--version')
out = cmd.run('bash')
print('')
print(out)

try:
cmd = Shell('/tmp');
out = cmd.run('bash --version')
out = cmd.run('bash', '--version')
except Exception:
self.fail('Exception should not have been raised')

0 comments on commit 45fbd65

Please sign in to comment.