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

Type BERBooleanKnownValues

    object --+        
             |        
object --+   |        
         |   |        
  TestCase --+        
             |        
   _Assertions --+    
                 |    
          TestCase --+
                     |
                    BERBooleanKnownValues


Method Summary
  testFromBERBooleanKnownValues(self)
BERBoolean(encoded="...") should give known result with known input
  testPartialBERBooleanEncodings(self)
BERBoolean(encoded="...") with too short input should throw BERExceptionInsufficientData
  testToBERBooleanKnownValues(self)
str(BERBoolean(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, [1, 1, 0], 0), (1, [1, 1, 255], 255),...
    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

testFromBERBooleanKnownValues(self)

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

testPartialBERBooleanEncodings(self)

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

testToBERBooleanKnownValues(self)

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

Class Variable Details

knownValues

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

Generated by Epydoc 2.1 on Sun Oct 1 10:49:47 2006 http://epydoc.sf.net