Account for both ssh method signatures
Newer flexmock versions fixed a bug that caught more calls than
required.
@@ -93,6 +93,8 @@ class TestCassandraBackup(unittest.TestCase):
keyname, re.compile('^find.* -exec rm .*'))
flexmock(utils).should_receive('ssh').with_args(re.compile('^192.*'),
keyname, re.compile('^tar xf .*'))
+ flexmock(utils).should_receive('ssh').with_args(re.compile('^192.*'),
+ keyname, re.compile('^monit start .*'), subprocess.call)
flexmock(utils).should_receive('ssh').with_args(re.compile('^192.*'),
keyname, re.compile('^monit start .*'))
flexmock(utils).should_receive('ssh').with_args(
