[tests/caffeine] Add unit tests for caffeine
This commit is contained in:
parent
aaaf62673d
commit
e6d44e7898
2 changed files with 70 additions and 1 deletions
|
@ -54,7 +54,7 @@ class MockPopen(object):
|
|||
self.mock.returncode = 0
|
||||
|
||||
def assert_call(self, cmd):
|
||||
self.mock.popen.assert_called_with(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
self.mock.popen.assert_any_call(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
|
||||
def cleanup(self):
|
||||
self._patch.stop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue