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

Class BERSequenceKnownValues

source code

                    object --+            
                             |            
             unittest.TestCase --+        
                                 |        
                        object --+        
                                 |        
twisted.trial.unittest._Assertions --+    
                                     |    
       twisted.trial.unittest.TestCase --+
                                         |
                                        BERSequenceKnownValues

Instance Methods [hide private]
 
testToBERSequenceKnownValues(self)
str(BERSequence(x)) should give known result with known input
source code
 
testFromBERSequenceKnownValues(self)
BERSequence(encoded="...") should give known result with known input
source code
 
testPartialBERSequenceEncodings(self)
BERSequence(encoded="...") with too short input should throw BERExceptionInsufficientData
source code

Inherited from twisted.trial.unittest.TestCase: __call__, __init__, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, getSkip, getSuppress, getTimeout, getTodo, mktemp, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest.TestCase (private): _cbDeferTestMethod, _classCleanUp, _cleanUp, _deprecateReactor, _ebDeferSetUp, _ebDeferSetUpClass, _ebDeferTearDown, _ebDeferTestMethod, _ebTearDownClass, _getReason, _installObserver, _isFirst, _isLast, _makeReactorMethod, _prepareClassFixture, _removeObserver, _run, _undeprecateReactor, _wait

Inherited from twisted.trial.unittest._Assertions: assertAlmostEqual, assertAlmostEquals, assertApproximates, assertEqual, assertEquals, assertFailure, assertFalse, assertIdentical, assertIn, assertNot, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIdentical, assertNotIn, assertNotSubstring, assertRaises, assertSubstring, assertTrue, assert_, fail, failIf, failIfAlmostEqual, failIfAlmostEquals, failIfEqual, failIfEquals, failIfIdentical, failIfIn, failIfSubstring, failUnless, failUnlessAlmostEqual, failUnlessAlmostEquals, failUnlessApproximates, failUnlessEqual, failUnlessEquals, failUnlessFailure, failUnlessFalse, failUnlessIdentical, failUnlessIn, failUnlessRaises, failUnlessSubstring, failUnlessTrue

Inherited from unittest.TestCase: __providedBy__, __repr__, __str__, countTestCases, debug, defaultTestResult, id, setUp, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from twisted.trial.unittest.TestCase (private): _initInstances

Class Variables [hide private]
  knownValues = (([], [48, 0]), ([BERInteger(value=2)], [48, 3, ...

Inherited from twisted.trial.unittest.TestCase: __implemented__, __provides__

Instance Variables [hide private]

Inherited from twisted.trial.unittest.TestCase: failureException, forceGarbageCollection, skip, suppress, timeout, todo

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

knownValues

Value:
(([], [48, 0]),
 ([BERInteger(value=2)], [48, 3, 2, 1, 2]),
 ([BERInteger(value=3)], [48, 3, 2, 1, 3]),
 ([BERInteger(value=128)], [48, 4, 2, 2, 0, 128]),
 ([BERInteger(value=2), BERInteger(value=3), BERInteger(value=128)],
  [48, 10, 2, 1, 2, 2, 1, 3, 2, 2, 0, 128]))