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

Class BERBooleanKnownValues

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
  assert_(self, condition, message)
  assertApproximates(self, first, second, tolerance, msg)
  assertEqual(self, first, second, msg)
  assertEquals(self, first, second, msg)
  assertIdentical(self, first, second, msg)
  assertIn(self, containee, container, msg)
  assertNotEqual(self, first, second, msg)
  assertNotEquals(self, first, second, msg)
  assertNotIdentical(self, first, second, msg)
  assertNotIn(self, containee, container, msg)
  assertRaises(self, exception, f, *args, **kwargs)
  fail(self, message)
  failIf(self, condition, message)
  failIfEqual(self, first, second, msg)
  failIfEquals(self, first, second, msg)
  failIfIdentical(self, first, second, msg)
  failIfIn(self, containee, container, msg)
  failUnless(self, condition, message)
  failUnlessEqual(self, first, second, msg)
  failUnlessIdentical(self, first, second, msg)
  failUnlessIn(self, containee, container, msg)
  failUnlessRaises(self, exception, f, *args, **kwargs)
  mktemp(self)
  runReactor(self, timesOrSeconds, seconds)
I'll iterate the reactor for a while.
  setUp(self)
  setUpClass(self)
  tearDown(self)
  tearDownClass(self)
  _mktGetCounter(self, base)

Class Variable Summary
tuple knownValues = ((0, [1, 1, 0], 0), (1, [1, 1, 255], 255),...
    Inherited from TestCase
NoneType expectedAssertions = None                                                                  
int _assertions = 0                                                                     

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 Tue Aug 17 17:08:22 2004 http://epydoc.sf.net