gnuradio::gr_unittest::TestCase Class Reference

A subclass of unittest.TestCase that adds additional assertions. More...

List of all members.

Public Member Functions

def assertComplexAlmostEqual
 Fail if the two complex objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
def assertComplexAlmostEqual2
 Fail if the two complex objects are unequal as determined by.
def assertComplexTuplesAlmostEqual
def assertComplexTuplesAlmostEqual2
def assertFloatTuplesAlmostEqual
def assertFloatTuplesAlmostEqual2


Detailed Description

A subclass of unittest.TestCase that adds additional assertions.

Adds new methods assertComplexAlmostEqual, assertComplexTuplesAlmostEqual and assertFloatTuplesAlmostEqual


Member Function Documentation

def gnuradio::gr_unittest::TestCase::assertComplexAlmostEqual (   self,
  first,
  second,
  places = 7,
  msg = None 
)

Fail if the two complex objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.

Note that decimal places (from zero) is usually not the same as significant digits (measured from the most signficant digit).

def gnuradio::gr_unittest::TestCase::assertComplexAlmostEqual2 (   self,
  ref,
  x,
  abs_eps = 1e-12,
  rel_eps = 1e-6,
  msg = None 
)

Fail if the two complex objects are unequal as determined by.

..

def gnuradio::gr_unittest::TestCase::assertComplexTuplesAlmostEqual (   self,
  a,
  b,
  places = 7,
  msg = None 
)

def gnuradio::gr_unittest::TestCase::assertComplexTuplesAlmostEqual2 (   self,
  ref,
  x,
  abs_eps = 1e-12,
  rel_eps = 1e-6,
  msg = None 
)

def gnuradio::gr_unittest::TestCase::assertFloatTuplesAlmostEqual (   self,
  a,
  b,
  places = 7,
  msg = None 
)

def gnuradio::gr_unittest::TestCase::assertFloatTuplesAlmostEqual2 (   self,
  ref,
  x,
  abs_eps = 1e-12,
  rel_eps = 1e-6,
  msg = None 
)


The documentation for this class was generated from the following file:

Generated on Thu Mar 5 09:03:57 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8