Package rekall :: Module testlib :: Class SimpleTestCase
[frames] | no frames]

Class SimpleTestCase

source code


A simple test which just compares with the baseline output.

Nested Classes
  __metaclass__
Automatic Plugin Registration through metaclasses. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  top_level_class
Base class for all rekall unit tests. (Inherited from rekall.testlib.RekallBaseUnitTestCase)

Inherited from unittest.case.TestCase: failureException

Instance Methods
 
testCase(self) source code
 
BuildBaselineData(self, config_options) (Inherited from rekall.testlib.RekallBaseUnitTestCase) source code
 
LaunchExecutable(self, config_options)
Launches the rekall executable with the config specified. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
source code
 
MakeUserSession(self, config_options=None) (Inherited from rekall.testlib.RekallBaseUnitTestCase) source code
 
__init__(self, method_name='__init__', baseline=None, current=None, debug=False, temp_directory=None, config_options=None)
Create an instance of the class that will use the named test method when executed. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
source code
 
__unicode__(self) (Inherited from rekall.testlib.RekallBaseUnitTestCase) source code
 
assertListEqual(self, a, b, msg=None)
A list-specific equality assertion. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
source code
 
run(self, result=None) (Inherited from rekall.testlib.RekallBaseUnitTestCase) source code
 
setUp(self)
Hook method for setting up the test fixture before exercising it. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, shortDescription, skipTest, tearDown

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods
 
is_active(cls, session)
Checks we are active.
source code
 
CommandName(cls) (Inherited from rekall.testlib.RekallBaseUnitTestCase) source code
 
ImplementationByClass(self, name) source code
 
ImplementationByName(self, name) source code
 
setUpClass(cls)
Hook method for setting up class fixture before running tests in the class. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
source code
 
tearDownClass(cls)
Hook method for deconstructing the class fixture after running all tests in the class. (Inherited from rekall.testlib.RekallBaseUnitTestCase)
source code
Class Variables
  PARAMETERS = {'commandline': ''} (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  PLUGIN = None
hash(x) (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  classes = {'BuildSymbolOffsetIndexTest': <class 'rekall.plugin... (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  classes_by_name = {None: [<class 'rekall.testlib.InlineTest'>,... (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  disabled = False (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  mode = None
hash(x) (Inherited from rekall.plugin.ModeBasedActiveMixin)
  plugin_feature = 'RekallBaseUnitTestCase' (Inherited from rekall.testlib.RekallBaseUnitTestCase)
  temp_directory = None
hash(x) (Inherited from rekall.testlib.RekallBaseUnitTestCase)

Inherited from unittest.case.TestCase: longMessage, maxDiff

Properties

Inherited from object: __class__

Method Details

is_active(cls, session)
Class Method

source code 

Checks we are active.

This method will be called with the session to check if this specific class is active. This mechanism allows multiple implementations to all share the same name, as long as only one is actually active. For example, we can have a linux, windows and mac version of plugins with the "pslist" name.

This mixin provides the mixed class with a basic is_active() method which honors a mode member defined on the class and all its subclasses. The mode is additive (meaning each class and its subclasses are only active if the mode is active).

Overrides: RekallBaseUnitTestCase.is_active

ImplementationByClass(self, name)
Class Method

source code 
Overrides: RekallBaseUnitTestCase.ImplementationByClass

ImplementationByName(self, name)
Class Method

source code 
Overrides: RekallBaseUnitTestCase.ImplementationByName