/[thuban]/branches/WIP-pyshapelib-bramz/test/support.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/support.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1736 by bh, Mon Sep 22 18:46:56 2003 UTC revision 1839 by bh, Tue Oct 21 09:58:51 2003 UTC
# Line 115  class ThubanTestResult(unittest._TextTes Line 115  class ThubanTestResult(unittest._TextTes
115                      self.stream.writeln("    " + test.id())                      self.stream.writeln("    " + test.id())
116          unittest._TextTestResult.printErrors(self)          unittest._TextTestResult.printErrors(self)
117    
118        def getDescription(self, test):
119            return test.id()
120    
121    
122  class ThubanTestRunner(unittest.TextTestRunner):  class ThubanTestRunner(unittest.TextTestRunner):
123    
# Line 312  class FloatComparisonMixin: Line 315  class FloatComparisonMixin:
315          value in test and value is less than the optional parameter          value in test and value is less than the optional parameter
316          epsilon. If epsilon is not given use self.fp_epsilon.          epsilon. If epsilon is not given use self.fp_epsilon.
317          """          """
318            self.assertEquals(len(test), len(value))
319          for i in range(len(test)):          for i in range(len(test)):
320              self.assertFloatEqual(test[i], value[i], epsilon)              self.assertFloatEqual(test[i], value[i], epsilon)
321    

Legend:
Removed from v.1736  
changed lines
  Added in v.1839

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26