| |
- BSDBase
-
- GetRetrieverV1BSD(BSDBase, GetRetrieverV1)
- GetRetrieverV2CBSD(BSDBase, GetRetrieverV2C)
- BaseTestCase(TestCase)
-
- GetRetrieverV1
-
- GetRetrieverV1BSD(BSDBase, GetRetrieverV1)
- GetRetrieverV2C
-
- GetRetrieverV2CBSD(BSDBase, GetRetrieverV2C)
- LargeTableTest
-
- LargeTableTestv2c
- MassRetrieverTest
class GetRetrieverV1(BaseTestCase) |
| |
- Method resolution order:
- GetRetrieverV1
- BaseTestCase
- TestCase
- object
Methods defined here:
- test_multiTableGet(self)
- #bad
- test_multiTableGetBad(self)
- #good
- test_simpleGet(self)
- Can retrieve a single simple value?
- test_socketFailure(self)
- Test whether socket failure on send is caught properly
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_socketFailureTable(self)
- Test whether socket failure on send is caught properly for tables
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_tableGet(self)
- Can retrieve a tabular value?
- test_tableGetAll(self)
- Does tabular retrieval work specifying a distant parent (e.g. .1.3.6)?
- test_tableGetMissing(self)
- Does tabular retrieval ignore non-existent oid-sets?
- test_tableGetWithStart(self)
- Can retrieve a tabular value?
Data and other attributes defined here:
- i = 511
- key = '.1.3.6.2.4.0'
- oidsForTesting = [(OID( '.1.3.6.1.2.1.1.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.1.2.0' ), 32), (OID( '.1.3.6.1.2.1.1.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.1.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.2.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.2.2.0' ), 32), (OID( '.1.3.6.1.2.1.2.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.2.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.3.0.0' ), 32), (OID( '.1.3.6.1.2.1.3.1.0' ), 32), (OID( '.1.3.6.1.2.1.3.2.0' ), 32), (OID( '.1.3.6.1.2.1.3.3.0' ), 32), (OID( '.1.3.6.1.2.1.3.4.0' ), 32), (OID( '.1.3.6.1.2.1.3.5.0' ), 32), (OID( '.1.3.6.1.2.1.3.6.0' ), 32), (OID( '.1.3.6.1.2.1.3.7.0' ), 32), (OID( '.1.3.6.1.2.1.3.8.0' ), 32), (OID( '.1.3.6.1.2.1.3.9.0' ), 32), (OID( '.1.3.6.1.2.1.3.10.0' ), 32), (OID( '.1.3.6.1.2.1.3.11.0' ), 32), ...]
- value = OctetString('From Octet String')
- version = 'v1'
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- createStorage(self)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
|
class GetRetrieverV1BSD(BSDBase, GetRetrieverV1) |
| |
- Method resolution order:
- GetRetrieverV1BSD
- BSDBase
- GetRetrieverV1
- BaseTestCase
- TestCase
- object
Methods inherited from BSDBase:
- createStorage(self)
Methods inherited from GetRetrieverV1:
- test_multiTableGet(self)
- #bad
- test_multiTableGetBad(self)
- #good
- test_simpleGet(self)
- Can retrieve a single simple value?
- test_socketFailure(self)
- Test whether socket failure on send is caught properly
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_socketFailureTable(self)
- Test whether socket failure on send is caught properly for tables
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_tableGet(self)
- Can retrieve a tabular value?
- test_tableGetAll(self)
- Does tabular retrieval work specifying a distant parent (e.g. .1.3.6)?
- test_tableGetMissing(self)
- Does tabular retrieval ignore non-existent oid-sets?
- test_tableGetWithStart(self)
- Can retrieve a tabular value?
Data and other attributes inherited from GetRetrieverV1:
- i = 511
- key = '.1.3.6.2.4.0'
- oidsForTesting = [(OID( '.1.3.6.1.2.1.1.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.1.2.0' ), 32), (OID( '.1.3.6.1.2.1.1.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.1.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.2.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.2.2.0' ), 32), (OID( '.1.3.6.1.2.1.2.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.2.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.3.0.0' ), 32), (OID( '.1.3.6.1.2.1.3.1.0' ), 32), (OID( '.1.3.6.1.2.1.3.2.0' ), 32), (OID( '.1.3.6.1.2.1.3.3.0' ), 32), (OID( '.1.3.6.1.2.1.3.4.0' ), 32), (OID( '.1.3.6.1.2.1.3.5.0' ), 32), (OID( '.1.3.6.1.2.1.3.6.0' ), 32), (OID( '.1.3.6.1.2.1.3.7.0' ), 32), (OID( '.1.3.6.1.2.1.3.8.0' ), 32), (OID( '.1.3.6.1.2.1.3.9.0' ), 32), (OID( '.1.3.6.1.2.1.3.10.0' ), 32), (OID( '.1.3.6.1.2.1.3.11.0' ), 32), ...]
- value = OctetString('From Octet String')
- version = 'v1'
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
|
class GetRetrieverV2C(GetRetrieverV1) |
| |
- Method resolution order:
- GetRetrieverV2C
- GetRetrieverV1
- BaseTestCase
- TestCase
- object
Methods defined here:
- test_tableGetAllBulk(self)
- Does tabular retrieval do only a single query?
- test_tableGetAllMaxSize(self)
- Does tabular retrieval respect passed maxSize?
Data and other attributes defined here:
- version = 'v2c'
Methods inherited from GetRetrieverV1:
- test_multiTableGet(self)
- #bad
- test_multiTableGetBad(self)
- #good
- test_simpleGet(self)
- Can retrieve a single simple value?
- test_socketFailure(self)
- Test whether socket failure on send is caught properly
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_socketFailureTable(self)
- Test whether socket failure on send is caught properly for tables
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_tableGet(self)
- Can retrieve a tabular value?
- test_tableGetAll(self)
- Does tabular retrieval work specifying a distant parent (e.g. .1.3.6)?
- test_tableGetMissing(self)
- Does tabular retrieval ignore non-existent oid-sets?
- test_tableGetWithStart(self)
- Can retrieve a tabular value?
Data and other attributes inherited from GetRetrieverV1:
- i = 511
- key = '.1.3.6.2.4.0'
- oidsForTesting = [(OID( '.1.3.6.1.2.1.1.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.1.2.0' ), 32), (OID( '.1.3.6.1.2.1.1.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.1.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.2.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.2.2.0' ), 32), (OID( '.1.3.6.1.2.1.2.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.2.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.3.0.0' ), 32), (OID( '.1.3.6.1.2.1.3.1.0' ), 32), (OID( '.1.3.6.1.2.1.3.2.0' ), 32), (OID( '.1.3.6.1.2.1.3.3.0' ), 32), (OID( '.1.3.6.1.2.1.3.4.0' ), 32), (OID( '.1.3.6.1.2.1.3.5.0' ), 32), (OID( '.1.3.6.1.2.1.3.6.0' ), 32), (OID( '.1.3.6.1.2.1.3.7.0' ), 32), (OID( '.1.3.6.1.2.1.3.8.0' ), 32), (OID( '.1.3.6.1.2.1.3.9.0' ), 32), (OID( '.1.3.6.1.2.1.3.10.0' ), 32), (OID( '.1.3.6.1.2.1.3.11.0' ), 32), ...]
- value = OctetString('From Octet String')
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- createStorage(self)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
|
class GetRetrieverV2CBSD(BSDBase, GetRetrieverV2C) |
| |
- Method resolution order:
- GetRetrieverV2CBSD
- BSDBase
- GetRetrieverV2C
- GetRetrieverV1
- BaseTestCase
- TestCase
- object
Methods inherited from BSDBase:
- createStorage(self)
Methods inherited from GetRetrieverV2C:
- test_tableGetAllBulk(self)
- Does tabular retrieval do only a single query?
- test_tableGetAllMaxSize(self)
- Does tabular retrieval respect passed maxSize?
Data and other attributes inherited from GetRetrieverV2C:
- version = 'v2c'
Methods inherited from GetRetrieverV1:
- test_multiTableGet(self)
- #bad
- test_multiTableGetBad(self)
- #good
- test_simpleGet(self)
- Can retrieve a single simple value?
- test_socketFailure(self)
- Test whether socket failure on send is caught properly
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_socketFailureTable(self)
- Test whether socket failure on send is caught properly for tables
Previous versions have not caught failure-on-send conditions,
which can wind up having unexpected consequences, particularly
with things such as mass-retriever, which build on top of the
basic AgentProxy.
- test_tableGet(self)
- Can retrieve a tabular value?
- test_tableGetAll(self)
- Does tabular retrieval work specifying a distant parent (e.g. .1.3.6)?
- test_tableGetMissing(self)
- Does tabular retrieval ignore non-existent oid-sets?
- test_tableGetWithStart(self)
- Can retrieve a tabular value?
Data and other attributes inherited from GetRetrieverV1:
- i = 511
- key = '.1.3.6.2.4.0'
- oidsForTesting = [(OID( '.1.3.6.1.2.1.1.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.1.2.0' ), 32), (OID( '.1.3.6.1.2.1.1.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.1.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.2.1.0' ), 'Hello world!'), (OID( '.1.3.6.1.2.1.2.2.0' ), 32), (OID( '.1.3.6.1.2.1.2.3.0' ), IpAddress('127.0.0.1')), (OID( '.1.3.6.1.2.1.2.4.0' ), OctetString('From Octet String')), (OID( '.1.3.6.1.2.1.3.0.0' ), 32), (OID( '.1.3.6.1.2.1.3.1.0' ), 32), (OID( '.1.3.6.1.2.1.3.2.0' ), 32), (OID( '.1.3.6.1.2.1.3.3.0' ), 32), (OID( '.1.3.6.1.2.1.3.4.0' ), 32), (OID( '.1.3.6.1.2.1.3.5.0' ), 32), (OID( '.1.3.6.1.2.1.3.6.0' ), 32), (OID( '.1.3.6.1.2.1.3.7.0' ), 32), (OID( '.1.3.6.1.2.1.3.8.0' ), 32), (OID( '.1.3.6.1.2.1.3.9.0' ), 32), (OID( '.1.3.6.1.2.1.3.10.0' ), 32), (OID( '.1.3.6.1.2.1.3.11.0' ), 32), ...]
- value = OctetString('From Octet String')
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
|
class LargeTableTest(BaseTestCase) |
|
Test for full retrieval of a large table |
|
- Method resolution order:
- LargeTableTest
- BaseTestCase
- TestCase
- object
Methods defined here:
- testLargeTable(self)
- Do we retrieve all records for a large table?
Data and other attributes defined here:
- i = 1023
- oidsForTesting = [('.1.3.6.1.2.1.1.0', 32), ('.1.3.6.1.2.1.1.1', 32), ('.1.3.6.1.2.1.1.2', 32), ('.1.3.6.1.2.1.1.3', 32), ('.1.3.6.1.2.1.1.4', 32), ('.1.3.6.1.2.1.1.5', 32), ('.1.3.6.1.2.1.1.6', 32), ('.1.3.6.1.2.1.1.7', 32), ('.1.3.6.1.2.1.1.8', 32), ('.1.3.6.1.2.1.1.9', 32), ('.1.3.6.1.2.1.1.10', 32), ('.1.3.6.1.2.1.1.11', 32), ('.1.3.6.1.2.1.1.12', 32), ('.1.3.6.1.2.1.1.13', 32), ('.1.3.6.1.2.1.1.14', 32), ('.1.3.6.1.2.1.1.15', 32), ('.1.3.6.1.2.1.1.16', 32), ('.1.3.6.1.2.1.1.17', 32), ('.1.3.6.1.2.1.1.18', 32), ('.1.3.6.1.2.1.1.19', 32), ...]
- version = 'v2'
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- createStorage(self)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
|
class LargeTableTestv2c(LargeTableTest) |
|
Test for full retrieval of a large table |
|
- Method resolution order:
- LargeTableTestv2c
- LargeTableTest
- BaseTestCase
- TestCase
- object
Data and other attributes defined here:
- version = 'v1'
Methods inherited from LargeTableTest:
- testLargeTable(self)
- Do we retrieve all records for a large table?
Data and other attributes inherited from LargeTableTest:
- i = 1023
- oidsForTesting = [('.1.3.6.1.2.1.1.0', 32), ('.1.3.6.1.2.1.1.1', 32), ('.1.3.6.1.2.1.1.2', 32), ('.1.3.6.1.2.1.1.3', 32), ('.1.3.6.1.2.1.1.4', 32), ('.1.3.6.1.2.1.1.5', 32), ('.1.3.6.1.2.1.1.6', 32), ('.1.3.6.1.2.1.1.7', 32), ('.1.3.6.1.2.1.1.8', 32), ('.1.3.6.1.2.1.1.9', 32), ('.1.3.6.1.2.1.1.10', 32), ('.1.3.6.1.2.1.1.11', 32), ('.1.3.6.1.2.1.1.12', 32), ('.1.3.6.1.2.1.1.13', 32), ('.1.3.6.1.2.1.1.14', 32), ('.1.3.6.1.2.1.1.15', 32), ('.1.3.6.1.2.1.1.16', 32), ('.1.3.6.1.2.1.1.17', 32), ('.1.3.6.1.2.1.1.18', 32), ('.1.3.6.1.2.1.1.19', 32), ...]
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- createStorage(self)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
|
class MassRetrieverTest(BaseTestCase) |
|
Test for mass retrieval of values |
|
- Method resolution order:
- MassRetrieverTest
- BaseTestCase
- TestCase
- object
Methods defined here:
- testMassRetriever(self)
- Can we retrieve mass value single-oid values?
- testMassRetrieverTables(self)
- Can we retrieve mass value tabular sets?
Data and other attributes defined here:
- oidsForTesting = [('.1.3.6.1.1.3', 'Blah!'), ('.1.3.6.1.2.1.1.1.0', 'Hello world!'), ('.1.3.6.1.2.1.1.2.0', 32), ('.1.3.6.1.2.1.1.3.0', IpAddress('127.0.0.1')), ('.1.3.6.1.2.1.1.4.0', OctetString('From Octet String'))]
- version = 'v2'
Methods inherited from BaseTestCase:
- createClientPort(self)
- Get our client port (and the attached protocol)
- createStorage(self)
- doUntilFinish(self, d)
- Given a defered, add our callbacks and iterated until completed
- installMessageCounter(self)
- Install a message-counting wrapper in our client protocol
- onFailure(self, reason)
- onSuccess(self, value)
- setUp(self)
- Set up the agent to query as self.agent
- tearDown(self)
- Tear down our testing framework
Data and other attributes inherited from BaseTestCase:
- ALLOW_CACHE = True
Methods inherited from TestCase:
- __call__(self, *args, **kwds)
- __init__(self, methodName='runTest')
- Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
- __repr__(self)
- __str__(self)
- assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertEqual = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertEquals = failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- assertFalse = failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- assertNotEqual = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertNotEquals = failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- assertTrue = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- assert_ = failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- countTestCases(self)
- debug(self)
- Run the test without collecting errors in a TestResult
- defaultTestResult(self)
- fail(self, msg=None)
- Fail immediately, with the given message.
- failIf(self, expr, msg=None)
- Fail the test if the expression is true.
- failIfAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are equal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failIfEqual(self, first, second, msg=None)
- Fail if the two objects are equal as determined by the '=='
operator.
- failUnless(self, expr, msg=None)
- Fail the test unless the expression is true.
- failUnlessAlmostEqual(self, first, second, places=7, msg=None)
- Fail if the two objects are unequal as determined by their
difference rounded to the given number of decimal places
(default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same
as significant digits (measured from the most signficant digit).
- failUnlessEqual(self, first, second, msg=None)
- Fail if the two objects are unequal as determined by the '=='
operator.
- failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
- Fail unless an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
- id(self)
- run(self, result=None)
- shortDescription(self)
- Returns a one-line description of the test, or None if no
description has been provided.
The default implementation of this method returns the first line of
the specified test method's docstring.
Data and other attributes inherited from TestCase:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'TestCase' objects>
- list of weak references to the object (if defined)
- failureException = <class exceptions.AssertionError>
- Assertion failed.
| |