Back to index

radiance  4R0+20100331
Public Member Functions | Public Attributes
py_tests.test_lam.LamTestCase Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def test_lam

Public Attributes

 oldpath

Detailed Description

Definition at line 10 of file test_lam.py.


Member Function Documentation

Definition at line 11 of file test_lam.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_lam.py.

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

Definition at line 18 of file test_lam.py.

00018 
00019        def test_lam(self):
00020               dat_de = support.datafile('lam_de.dat')
00021               dat_en = support.datafile('lam_en.dat')
00022               cmd = 'rlam -t: "%s" "%s"' % (dat_de, dat_en)
00023               raw = os.popen(cmd).read()
00024               result = map(string.split,string.split(raw,'\n'))
00025               expect = [
00026               ['eins:one'],
00027               ['zwei:two'],
00028               ['drei:three'],
00029               ['vier:four'],
              ['fuenf:five'],

Member Data Documentation

Definition at line 12 of file test_lam.py.


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