gnuradio.gr_unittest

GNU radio specific extension of unittest.

class gnuradio.gr_unittest.TestCase(methodName='runTest')

A subclass of unittest.TestCase that adds additional assertions

Adds new methods assertComplexAlmostEqual, assertComplexTuplesAlmostEqual and assertFloatTuplesAlmostEqual

gnuradio.gr_unittest.run(PUT, filename=None)

Runs the unittest on a TestCase and produces an optional XML report PUT: the program under test and should be a gr_unittest.TestCase filename: an optional filename to save the XML report of the tests

this will live in ./.unittests/python

Previous topic

gnuradio.filter

Next topic

gnuradio.trellis

This Page