geonode.tests.test_load_thesaurus ================================= .. py:module:: geonode.tests.test_load_thesaurus Classes ------- .. autoapisummary:: geonode.tests.test_load_thesaurus.TestLoadThesaurus geonode.tests.test_load_thesaurus.TestExtractLanguages Module Contents --------------- .. py:class:: TestLoadThesaurus Bases: :py:obj:`django.test.TestCase` .. py:method:: setUpTestData() :classmethod: .. py:method:: setUp() .. py:method:: test_given_invalid_filename_will_raise_an_oserror() .. py:method:: test_expected_Thesaurus() .. py:method:: test_expected_ThesaurusKeyword() .. py:method:: test_expected_ThesaurusKeywordLabel() .. py:method:: test_expected_ThesaurusLabel() .. py:method:: test_load_from_UploadedFile() .. py:method:: test_load_from_UploadedFile_fails_with_no_extension() .. py:method:: __get_last_thesaurus() :staticmethod: .. py:class:: TestExtractLanguages Bases: :py:obj:`django.test.testcases.SimpleTestCase` .. py:method:: setUp() .. py:method:: test_get_all_lang_available_should_return_all_the_lang_available_in_the_file() .. py:method:: test_determinate_title_should_return_the_title_without_lang_if_available() .. py:method:: test_determinate_title_should_return_the_italian_lang_if_none_is_not_available() .. py:method:: test_determinate_title_should_return_the_title_whithout_lang_even_if_localized_is_available() .. py:method:: test_determinate_title_should_take_the_first_localized_title_when_default_one_is_not_available() .. py:method:: __load_titles() -> List[rdflib.Literal]