class_docstr: Test rule import logic with a mocked filesystem.
class_docstr_tok: ["Test","rule","import","logic","with","a","mocked","filesystem","."]
docstr: Rule - Import Folders
docstr_tok: ["Rule","-","Import","Folders"]
code: def test_import_rules(mock_import):
      """Rule - Import Folders"""
      import_folders("matchers", "rules")
      mock_import.assert_has_calls(
          [
              call("matchers.default"),
              call("rules.example"),
              call("rules.community.cloudtrail.critical_api"),
          ],
          any_order=True,
      )
  
file_path: streamalert/tests/unit/streamalert/shared/test_importer.py
imports: from mock import call, patch
  from nose.tools import assert_equal, assert_raises
  from pyfakefs import fake_filesystem_unittest
  from streamalert.shared.importer import import_folders, _path_to_module, _python_file_paths
label_desc: Use image node_id 5 for calling the RuleImportTest obj's underlying member method code with example usage: obj.test_import_rules(mock_import) without return types