geonode.tests.test_load_thesaurus

Classes

TestLoadThesaurus

TestExtractLanguages

Module Contents

class geonode.tests.test_load_thesaurus.TestLoadThesaurus[source]

Bases: django.test.TestCase

classmethod setUpTestData()[source]
setUp()[source]
test_given_invalid_filename_will_raise_an_oserror()[source]
test_expected_Thesaurus()[source]
test_expected_ThesaurusKeyword()[source]
test_expected_ThesaurusKeywordLabel()[source]
test_expected_ThesaurusLabel()[source]
test_load_from_UploadedFile()[source]
test_load_from_UploadedFile_fails_with_no_extension()[source]
static __get_last_thesaurus()[source]
class geonode.tests.test_load_thesaurus.TestExtractLanguages[source]

Bases: django.test.testcases.SimpleTestCase

setUp()[source]
test_get_all_lang_available_should_return_all_the_lang_available_in_the_file()[source]
test_determinate_title_should_return_the_title_without_lang_if_available()[source]
test_determinate_title_should_return_the_italian_lang_if_none_is_not_available()[source]
test_determinate_title_should_return_the_title_whithout_lang_even_if_localized_is_available()[source]
test_determinate_title_should_take_the_first_localized_title_when_default_one_is_not_available()[source]
__load_titles() List[rdflib.Literal][source]