コード例 #1
0
def test_sanitize_collection_name_replaces_hep_with_literature():
    expected = 'literature'
    result = sanitize_collection_name('hep')

    assert expected == result
コード例 #2
0
def test_sanitize_collection_name_replaces_hepnames_with_authors():
    expected = 'authors'
    result = sanitize_collection_name('hepnames')

    assert expected == result
コード例 #3
0
def test_sanitize_collection_name_returns_none_on_empty_string():
    assert sanitize_collection_name('') is None
コード例 #4
0
def test_sanitize_collection_name_replaces_hep_with_literature():
    expected = 'literature'
    result = sanitize_collection_name('hep')

    assert expected == result
コード例 #5
0
def test_sanitize_collection_name_replaces_hepnames_with_authors():
    expected = 'authors'
    result = sanitize_collection_name('hepnames')

    assert expected == result
コード例 #6
0
def test_sanitize_collection_name_returns_none_on_empty_string():
    assert sanitize_collection_name('') is None