Пример #1
0
 def test_dict_variables_item_in_keyword_args(self):
     self.test.execute(
         PasteArea((0, 0), [[self.keyword5.name, '&{DICT_VARIABLE}[foo]']]))
     self._verify_cell_info(0, 0, ContentType.USER_KEYWORD,
                            CellType.KEYWORD)
     self._verify_cell_info(0, 1, ContentType.VARIABLE, CellType.MANDATORY)
     self._verify_cell_info(0, 2, ContentType.EMPTY, CellType.MANDATORY)
Пример #2
0
 def test_library_import_add_and_remove(self):
     self.test.execute(PasteArea((0, 0), [['Get File', 'reaktor.txt']]))
     self._verify_cell_info(0, 0, ContentType.STRING, CellType.KEYWORD)
     self._verify_cell_info(0, 1, ContentType.STRING, CellType.UNKNOWN)
     self.testsuite.imports.add_library('OperatingSystem', [], '')
     self._verify_cell_info(0, 0, ContentType.LIBRARY_KEYWORD, CellType.KEYWORD)
     self._verify_cell_info(0, 1, ContentType.STRING, CellType.MANDATORY)
     self.testsuite.imports.delete(-1)
     self._verify_cell_info(0, 0, ContentType.STRING, CellType.KEYWORD)
     self._verify_cell_info(0, 1, ContentType.STRING, CellType.UNKNOWN)