def test_api_guess_broker(mocked_connected, requests_mock):
    requests_mock.get('http://localhost:1026/version', status_code=200, json={'orionld version': 'post-v0.8.1'})
    client = Client()
    (vendor, version) = client.guess_vendor()
    logger.info(f'vendor={vendor!r}')
    assert (vendor == Vendor.ORIONLD)
    assert (version == 'post-v0.8.1')
def test_api_guess_broker(mocked_connected, requests_mock):
    requests_mock.get('http://localhost:1026/version', status_code=200, json={'orionld version': 'post-v0.8.1'})
    client = Client()
    (vendor, version) = client.guess_vendor()
    logger.info(f'vendor={vendor!r}')
    assert (vendor == Vendor.ORIONLD)
    assert (version == 'post-v0.8.1')