klenwell information services : PythonTemplateFunctionalTest

Revision history for PythonTemplateFunctionalTest


Revision [2001]

Last edited on 2011-12-15 09:22:44 by KlenwellAdmin
Additions:
This template reflects a straightforward unit test. With a little ingenuity, it can be adapted to most functional tests.
Deletions:
This template reflects a straightforward unit test. Will a little ingenuity, it can be adapted to most functional tests.


Revision [1944]

Edited on 2011-10-17 19:21:27 by KlenwellAdmin
Additions:
mod = sys.modules[globals()['__name__']]
suite = unittest.TestLoader().loadTestsFromModule(mod)
Deletions:
suite = unittest.TestLoader().loadTestsFromTestCase(FunctionalTest)
print "\n%s START TEST: %s %s\n" % ("*"*5, datetime.now(), "*"*5)
print "\n%s END TEST: %s %s\n" % ("*"*5, datetime.now(), "*"*5)


Revision [1793]

Edited on 2011-01-06 20:07:46 by KlenwellAdmin
Additions:
"""adapt to your purposes, I like to always include this as a sanity check"""
Deletions:
"""adapt to your purposes, I like to always include this as a basic case"""


Revision [1792]

Edited on 2011-01-06 20:07:12 by KlenwellAdmin
Additions:
"""adapt to your purposes, I like to always include this as a basic case"""
self.assertTrue(isinstance(self, unittest.TestCase))


Revision [1791]

Edited on 2011-01-06 19:50:55 by KlenwellAdmin
Additions:
# Extend sys.path
#basepath = abspath(osjoin(dirname(__file__), '../..'))
#sys.path.append(osjoin(basepath, 'bin'))


Revision [1785]

Edited on 2011-01-06 18:58:34 by KlenwellAdmin
Additions:
This template reflects a straightforward unit test. Will a little ingenuity, it can be adapted to most functional tests.
Deletions:
Note the usage of pdb in the testBreak method.


Revision [1784]

The oldest known version of this page was created on 2011-01-06 18:56:01 by KlenwellAdmin