Merge "Fixed backup unittests to use mocked cmd"

This commit is contained in:
Jenkins 2014-03-11 07:23:06 +00:00 committed by Gerrit Code Review
commit 7aedda8d8d

View File

@ -50,6 +50,9 @@ class MockBackup(BackupRunner):
self.cmd = 'echo %s' % self.data
super(MockBackup, self).__init__(*args, **kwargs)
def cmd(self):
return self.cmd
class MockCheckProcessBackup(MockBackup):
"""Backup runner that fails confirming the process."""