def test_format_mesos_command(): ret = sysdig.format_mesos_command('slave1', 'appID1', 'http://foo', 'http://*****:*****@blah') expected = 'slave1:sudo csysdig -m http://foo,http://user:pass@blah marathon.app.id="/appID1" -v mesos_tasks' assert ret == expected