Package ldaptor :: Package test :: Module test_pureber :: Class BERIntegerKnownValues
[show private | hide private]
[frames | no frames]

Type BERIntegerKnownValues

    object --+        
             |        
object --+   |        
         |   |        
  TestCase --+        
             |        
   _Assertions --+    
                 |    
          TestCase --+
                     |
                    BERIntegerKnownValues


Method Summary
  testFromBERIntegerKnownValues(self)
BERInteger(encoded="...") should give known result with known input
  testPartialBERIntegerEncodings(self)
BERInteger(encoded="...") with too short input should throw BERExceptionInsufficientData
  testToBERIntegerKnownValues(self)
str(BERInteger(n)) should give known result with known input
    Inherited from TestCase
  __init__(self, methodName)
Create an instance of the class that will use the named test method when executed.
  __call__(self, *args, **kwargs)
  deferSetUp(self, ignored, result)
  deferSetUpClass(self, result)
  deferTearDown(self, ignored, result)
  deferTearDownClass(self, ignored, result)
  deferTestMethod(self, ignored, result)
  getSkip(self)
  getSuppress(self)
  getTimeout(self)
  getTodo(self)
  mktemp(self)
will return a unique name that may be used as either a temporary directory or filename
  run(self, result)
  shortDescription(self)
Returns a one-line description of the test, or None if no description has been provided.
  visit(self, visitor)
Call visitor.visitCase(self).
    Inherited from TestCase
  __repr__(self)
  __str__(self)
  countTestCases(self)
  debug(self)
Run the test without collecting errors in a TestResult
  defaultTestResult(self)
  id(self)
  setUp(self)
Hook method for setting up the test fixture before exercising it.
  tearDown(self)
Hook method for deconstructing the test fixture after testing it.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
tuple knownValues = ((0, [2, 1, 0]), (1, [2, 1, 1]), (2, [2, 1...
    Inherited from TestCase
Implements __implemented__ = <implementedBy twisted.trial.unittest....
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from TestCase
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Instance Method Details

testFromBERIntegerKnownValues(self)

BERInteger(encoded="...") should give known result with known input

testPartialBERIntegerEncodings(self)

BERInteger(encoded="...") with too short input should throw BERExceptionInsufficientData

testToBERIntegerKnownValues(self)

str(BERInteger(n)) should give known result with known input

Class Variable Details

knownValues

Type:
tuple
Value:
((0, [2, 1, 0]),
 (1, [2, 1, 1]),
 (2, [2, 1, 2]),
 (125, [2, 1, 125]),
 (126, [2, 1, 126]),
 (127, [2, 1, 127]),
 (-1, [2, 1, 255]),
 (-2, [2, 1, 254]),
...                                                                    

Generated by Epydoc 2.1 on Sat Aug 26 13:54:31 2006 http://epydoc.sf.net