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
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'
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()