.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: test_syntax_loader .. class:: alert alert-info pull-top .. contents:: *Module:* `test_syntax_loader.py `_ API ============================================================================================================= No description. *Imports:* ------------ - `os `_ - `unittest `_ - `ninja_ide.tools.json_manager.load_syntax `_ - `ninja_ide.resources `_ - `ninja_tests.tools.jsonmanager.samples `_ - `ninja_ide.core.settings `_ *Class:* `TestSyntaxLoader(unittest.TestCase) `_ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class TestSyntaxLoader(unittest.TestCase): | We test the loader method from the json manager | that is in charge of loading syntax files *Attributes* ~~~~~~~~~~~~~~ - `SYNTAX [at ln:40] `_ - `SYNTAX_FILES [at ln:64] `_ - `badsamples [at ln:38] `_ - `goodsamples [at ln:37] `_ - `samples [at ln:36] `_ *Function:* `setUp() [at ln:34] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setUp(): No description. ---- *Function:* `test_load_bad_json_syntax_file() [at ln:62] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_load_bad_json_syntax_file(): No description. ---- *Function:* `test_load_nice_json_syntax_file() [at ln:42] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_load_nice_json_syntax_file(): No description.