class_docstr: Test rule import logic with a mocked filesystem.
class_docstr_tok: ["Test","rule","import","logic","with","a","mocked","filesystem","."]
code: def setUp(self):
      self.setUpPyfakefs()
  
      # Add rule and matcher files which should be imported.
      self.fs.create_file("matchers/default.py")
      self.fs.create_file("rules/example.py")
      self.fs.create_file("rules/community/cloudtrail/critical_api.py")
  
      # Add other files which should NOT be imported.
      self.fs.create_file("matchers/README.md")
      self.fs.create_file("rules/__init__.py")
      self.fs.create_file("rules/example.pyc")
      self.fs.create_file("rules/community/REVIEWERS")
  
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 1 for calling the RuleImportTest obj's underlying member method code with example usage: obj.setUp() without return types