Ejemplo n.º 1
0
def test_get_properties(live_eventhub):
    client = EventHubClient(live_eventhub['hostname'], live_eventhub['event_hub'],
                                    EventHubSharedKeyCredential(live_eventhub['key_name'], live_eventhub['access_key'])
                                    )
    properties = client.get_properties()
    assert properties['path'] == live_eventhub['event_hub'] and properties['partition_ids'] == ['0', '1']