Back to index

radiance  4R0+20100331
Public Member Functions | Public Attributes
py_tests.test_xform.XformTestCase Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def test_xform
def test_xform

Public Attributes

 oldpath

Detailed Description

Definition at line 10 of file test_xform.py.


Member Function Documentation

Definition at line 11 of file test_xform.py.

00011 
00012        def setUp(self):
00013               self.oldpath = os.environ['PATH']
00014               os.environ['PATH'] = os.path.abspath(support.BINDIR)

Definition at line 15 of file test_xform.py.

00015 
00016        def tearDown(self):
00017               os.environ['PATH'] = self.oldpath
              

Definition at line 18 of file test_xform.py.

00018 
00019        def test_xform(self):
00020               cmd = 'xform -e -s 3.14159 "%s"' % support.datafile('xform_1.dat')
00021               result = lcompare.split_rad(os.popen(cmd).read())
00022               expect = lcompare.split_radfile(support.datafile('xform_res1.dat'))
00023               try: lcompare.llcompare(result, expect, ignore_empty=1)
00024               except lcompare.error, e:
00025                      self.fail('%s [%s]' % (str(e),cmd))
00026 

Here is the caller graph for this function:

Definition at line 27 of file test_xform.py.

00027 
00028        def test_xform(self):
00029               cmd = 'xform -e -mx "%s"' % support.datafile('xform_2.dat')
00030               result = lcompare.split_rad(os.popen(cmd).read())
00031               expect = lcompare.split_radfile(support.datafile('xform_res2.dat'))
00032               try: lcompare.llcompare(result, expect, ignore_empty=1)
00033               except lcompare.error, e:
00034                      self.fail('%s [%s]' % (str(e),cmd))

Here is the call graph for this function:


Member Data Documentation

Definition at line 12 of file test_xform.py.


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