sfc_commandline::test::SFCCommandlineTest Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def testForms


Detailed Description

Definition at line 10 of file tests/sfc_commandline/test.py.


Member Function Documentation

def sfc_commandline::test::SFCCommandlineTest::setUp (   self  ) 

Definition at line 11 of file tests/sfc_commandline/test.py.

00011                    :
00012         print "Running templatetest in testdir"
00013         print "Imported SyFi from location", SyFi.__file__
00014         print "Imported sfc  from location", sfc.__file__
00015         shutil.rmtree(_test_temp_dir, ignore_errors=True)
00016         os.mkdir(_test_temp_dir)
00017         os.chdir(_test_temp_dir)
00018     
    def tearDown(self):

def sfc_commandline::test::SFCCommandlineTest::tearDown (   self  ) 

Definition at line 19 of file tests/sfc_commandline/test.py.

00019                       :
00020         os.chdir("..")
00021         #shutil.rmtree(_test_temp_dir, ignore_errors=True)
00022     
    def testForms(self):

def sfc_commandline::test::SFCCommandlineTest::testForms (   self  ) 

Definition at line 23 of file tests/sfc_commandline/test.py.

00023                        :
00024         forms = glob.glob("../forms/*.form")
00025         for f in forms:
00026             #cmd = "sfc -o %s %s" % (_test_temp_dir, f)
00027             cmd = "sfc %s" % f
00028             status, output = commands.getstatusoutput(cmd)
00029             self.assertTrue(status == 0)
00030     
00031     #def testFailureExample(self):
00032     #    assert 1
00033     #    #assert 0 # uncomment to see how a failure looks like
00034 
00035 
def test(verbosity=0):


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

Generated on Mon Aug 31 16:17:05 2009 for SyFi by  doxygen 1.5.9