Public Member Functions | |
def | setUp |
def | tearDown |
def | testSetup |
def | testMyStuff |
def | testFailureExample |
Public Attributes | |
foo |
Definition at line 9 of file tests/templatetestdir/test.py.
def templatetestdir::test::MyTest::setUp | ( | self | ) |
Definition at line 10 of file tests/templatetestdir/test.py.
00010 : 00011 # initialize stuff 00012 #debug("setUp") 00013 00014 print "Running templatetest in testdir" 00015 print "Imported SyFi from location", SyFi.__file__ 00016 print "Imported sfc from location", sfc.__file__ 00017 00018 self.foo = 1 00019 def tearDown(self):
def templatetestdir::test::MyTest::tearDown | ( | self | ) |
Definition at line 20 of file tests/templatetestdir/test.py.
00020 : 00021 # delete initialized stuff 00022 #debug("tearDown") 00023 del self.foo 00024 def testSetup(self):
def templatetestdir::test::MyTest::testFailureExample | ( | self | ) |
Definition at line 35 of file tests/templatetestdir/test.py.
00035 : 00036 assert 1 00037 #assert 0 # uncomment to see how a failure looks like 00038 00039 def test(verbosity=0):
def templatetestdir::test::MyTest::testMyStuff | ( | self | ) |
Definition at line 30 of file tests/templatetestdir/test.py.
00030 : 00031 # test whatever meant by "MyStuff" 00032 #debug("testMyStuff") 00033 assert 1 00034 def testFailureExample(self):
def templatetestdir::test::MyTest::testSetup | ( | self | ) |
Definition at line 25 of file tests/templatetestdir/test.py.
00025 : 00026 # test initialized stuff 00027 #debug("testSetup") 00028 assert self.foo 00029 def testMyStuff(self):
Definition at line 18 of file tests/templatetestdir/test.py.