def test_elements_count():
    '\n    Tests counting elements within a bounding box for two timestamps\n    :return:\n    '
    bboxes = [8.67066, 49.41423, 8.68177, 49.4204]
    time = '2010-01-01/2011-01-01/P1Y'
    keys = ['building']
    values = ['']
    timestamps = ['2010-01-01T00:00:00Z', '2011-01-01T00:00:00Z']
    counts = [53.0, 256.0]
    expected = pd.DataFrame({'timestamp': timestamps, 'value': counts})
    client = ohsome.OhsomeClient()
    response = client.elements.count.post(bboxes=bboxes, time=time, keys=keys, values=values)
    result = response.as_dataframe()
    del client
    assert expected.equals(result)
Tests counting elements within a bounding box for two timestamps
:return:
def test_elements_count():
    '\n    Tests counting elements within a bounding box for two timestamps\n    :return:\n    '
    bboxes = [8.67066, 49.41423, 8.68177, 49.4204]
    time = '2010-01-01/2011-01-01/P1Y'
    keys = ['building']
    values = []
    timestamps = ['2010-01-01T00:00:00Z', '2011-01-01T00:00:00Z']
    counts = [53.0, 256.0]
    expected = pd.DataFrame({'timestamp': timestamps, 'value': counts})
    client = ohsome.OhsomeClient()
    response = client.elements.count.post(bboxes=bboxes, time=time, keys=keys, values=values)
    result = response.as_dataframe()
    del client
    assert expected.equals(result)