def test_collection_to_index_falls_back_to_records_hep_if_no_key():
    expected = "records-hep"
    result = _collection_to_index("baz")

    assert expected == result
def test_collection_to_index_falls_back_to_records_hep_if_no_mapping():
    expected = "records-hep"
    result = _collection_to_index("foo")

    assert expected == result
def test_collection_to_index_fetches_from_mapping():
    expected = "bar"
    result = _collection_to_index("foo")

    assert expected == result