lsst.utils  14.0
 All Classes Namespaces Files Functions Variables Groups Pages
Classes | Namespaces | Functions | Variables
tests.py File Reference

Go to the source code of this file.

Classes

class  lsst.utils.tests.MemoryTestCase
 Check for memory leaks since memId0 was allocated. More...
 
class  lsst.utils.tests.ExecutablesTestCase
 Test that executables can be run and return good status. More...
 
class  lsst.utils.tests.TestCase
 Subclass of unittest.TestCase that adds some custom assertions for convenience. More...
 

Namespaces

 lsst.utils.tests
 

Functions

def lsst.utils.tests.init
 
def lsst.utils.tests.run
 Exit with the status code resulting from running the provided test suite. More...
 
def lsst.utils.tests.sort_tests
 Go through the supplied sequence of test suites and sort them to ensure that MemoryTestCases are at the end of the test list. More...
 
def lsst.utils.tests.suiteClassWrapper
 
def lsst.utils.tests.findFileFromRoot
 Find file which is specified as a path relative to the toplevel directory; we start in $cwd and walk up until we find the file (or throw IOError if it doesn't exist) More...
 
def lsst.utils.tests.getTempFilePath
 Return a path suitable for a temporary file and try to delete the file on success. More...
 
def lsst.utils.tests.inTestCase
 A decorator to add a free function to our custom TestCase class, while also making it available as a free function. More...
 
def lsst.utils.tests.assertRaisesLsstCpp
 
def lsst.utils.tests.debugger
 Decorator to enter the debugger when there's an uncaught exception. More...
 
def lsst.utils.tests.plotImageDiff
 Plot the comparison of two 2-d NumPy arrays. More...
 
def lsst.utils.tests.assertFloatsAlmostEqual
 Highly-configurable floating point comparisons for scalars and arrays. More...
 
def lsst.utils.tests.assertFloatsNotEqual
 
def lsst.utils.tests.assertFloatsEqual
 
def lsst.utils.tests.assertClose
 
def lsst.utils.tests.assertNotClose
 

Variables

 lsst.utils.tests.psutil = None
 
 lsst.utils.tests.dafBase = None
 
int lsst.utils.tests.memId0 = 0
 
int lsst.utils.tests.nleakPrintMax = 20
 
tuple lsst.utils.tests.open_files = set()