Module test_protocol :: Class TestLineProtocol
[show private | hide private]
[frames | no frames]

Class TestLineProtocol

  object --+        
           |        
    TestCase --+    
               |    
TestBaseProtocol --+
                   |
                  TestLineProtocol


Method Summary
  __init__(self, methodName)
Create an instance of the class that will use the named test method when executed. (inherited from TestCase)
  __call__(self, result)
(inherited from TestCase)
a new object with type S, a subtype of T __new__(S, ...)
  __repr__(self)
(inherited from TestCase)
  __str__(self)
(inherited from TestCase)
  assert_(self, expr, msg)
Fail the test unless the expression is true. (inherited from TestCase)
  assertAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  assertAlmostEquals(self, first, second, places, msg)
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. (inherited from TestCase)
  assertEqual(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator. (inherited from TestCase)
  assertEquals(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator. (inherited from TestCase)
  assertNotAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  assertNotAlmostEquals(self, first, second, places, msg)
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. (inherited from TestCase)
  assertNotEqual(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator. (inherited from TestCase)
  assertNotEquals(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator. (inherited from TestCase)
  assertRaises(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. (inherited from TestCase)
  countTestCases(self)
(inherited from TestCase)
  debug(self)
Run the test without collecting errors in a TestResult (inherited from TestCase)
  defaultTestResult(self)
(inherited from TestCase)
  fail(self, msg)
Fail immediately, with the given message. (inherited from TestCase)
  failIf(self, expr, msg)
Fail the test if the expression is true. (inherited from TestCase)
  failIfAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  failIfEqual(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator. (inherited from TestCase)
  failUnless(self, expr, msg)
Fail the test unless the expression is true. (inherited from TestCase)
  failUnlessAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  failUnlessEqual(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator. (inherited from TestCase)
  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. (inherited from TestCase)
  id(self)
(inherited from TestCase)
  run(self, result)
(inherited from TestCase)
  setUp(self)
Hook method for setting up the test fixture before exercising it.
  shortDescription(self)
Returns a one-line description of the test, or None if no description has been provided. (inherited from TestCase)
  tearDown(self)
Hook method for deconstructing the test fixture after testing it. (inherited from TestCase)
  testActive(self)
Protocol instance is initialized (inherited from TestBaseProtocol)
  testDataReceived(self)
Protocol receives data in line mode
  testInactive(self)
Protocol instance is shutdown (inherited from TestBaseProtocol)
  testLineOverflow(self)
Crashes when line length overflows
  testRawMode(self)
Protocol receives data in raw mode
  _TestCase__exc_info(self)
Return a version of sys.exc_info() with the traceback frame minimised; usually the top level of the traceback frame is not needed. (inherited from TestCase)

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

setUp(self)

Hook method for setting up the test fixture before exercising it.
Overrides:
test_protocol.TestBaseProtocol.setUp (inherited documentation)

testDataReceived(self)

Protocol receives data in line mode

testLineOverflow(self)

Crashes when line length overflows

testRawMode(self)

Protocol receives data in raw mode

Generated by Epydoc 1.1 on Sun Dec 7 16:06:05 2003 http://epydoc.sf.net