unit testing, setUp and scoping
jayeola at gmail.com
Wed Apr 14 16:47:31 CEST 2010
Can one use the setUp block to store variables so that they can be
used elsewhere in unit tests? I'm thinking that it's better to have
variables created in another script and have it imported from within
the unit test
'''create knowledge base of strings by unit testing'''
print '''setting up stuff for ''', __name__
s1 = 'single string'
'''test strings are of class str'''
if __name__ == "__main__":
07739 171 531
Enterprise Linux Systems Engineer
More information about the Python-list