示例#1
0
def test_bigchain_tendermint_version(capsys):
    from bigchaindb.commands.bigchaindb import run_tendermint_version

    args = Namespace(config=None)
    _, _ = capsys.readouterr()
    run_tendermint_version(args)
    output_config = json.loads(capsys.readouterr()[0])
    from bigchaindb.version import __tm_supported_versions__
    assert len(output_config["tendermint"]) == len(__tm_supported_versions__)
    assert sorted(output_config["tendermint"]) == sorted(__tm_supported_versions__)
示例#2
0
def test_bigchain_tendermint_version(capsys):
    from bigchaindb.commands.bigchaindb import run_tendermint_version

    args = Namespace(config=None)
    _, _ = capsys.readouterr()
    run_tendermint_version(args)
    output_config = json.loads(capsys.readouterr()[0])
    from bigchaindb.version import __tm_supported_versions__
    assert len(output_config["tendermint"]) == len(__tm_supported_versions__)
    assert sorted(
        output_config["tendermint"]) == sorted(__tm_supported_versions__)