Exemple #1
0
def test_find_latest_version_by_invalid_type(session):  # pylint: disable=unused-argument
    """Assert that a document is rendered correctly as a dictionary."""
    terms_of_use = DocumentService.find_latest_version_by_type('sometype')
    assert terms_of_use is None
Exemple #2
0
def test_find_latest_version_for_director_search(session):  # pylint: disable=unused-argument
    """Assert that a document is rendered correctly as a dictionary."""
    terms_of_use = DocumentService.find_latest_version_by_type(
        'termsofuse_directorsearch')
    assert terms_of_use == 'd1'
Exemple #3
0
def test_find_latest_version_by_type(session):  # pylint: disable=unused-argument
    """Assert that a document is rendered correctly as a dictionary."""
    terms_of_use = DocumentService.find_latest_version_by_type('termsofuse')
    assert terms_of_use == get_tos_latest_version()