def test_help():
    c, o, e = _c(['riak-mesos'])
    assert c == 0
    assert e == b''
    c, o, e = _c(['riak-mesos', '--help'])
    assert c == 0
    assert e == b''
    c, o, e = _c(['riak-mesos', 'config', '--help'])
    assert c == 0
    assert e == b''
    assert b'Displays configuration' in o.strip()
def test_framework_config():
    c, o, e = _c(['riak-mesos', 'framework', 'config', '--json', '--config',
                  './config/config.example.json'])
    js = json.loads(o.decode("utf-8").strip())
    assert js['id'] == 'riak'
    assert c == 0
    assert e == b''
def test_version():
    c, o, e = _c(['dcos-riak', '--version'])
    assert c == 0
    assert e == b''