<s> import unittest <EOL> import datetime <EOL> from gluon import * <EOL> from gluon . storage import Storage <EOL> class InvTests ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> auth = current . auth <EOL> auth . override = True <EOL> self . location_code = Storage ( ) <EOL> self . location_ids = Storage ( ) <EOL> s3db = current . s3db <EOL> def tearDown ( self ) : <EOL> current . db . rollback ( ) <EOL> current . auth . override = False <EOL> def run_suite ( * test_classes ) : <EOL> """<STR_LIT>""" <EOL> loader = unittest . TestLoader ( ) <EOL> suite = unittest . TestSuite ( ) <EOL> for test_class in test_classes : <EOL> tests = loader . loadTestsFromTestCase ( test_class ) <EOL> suite . addTests ( tests ) <EOL> if suite is not None : <EOL> unittest . TextTestRunner ( ) . run ( suite ) <EOL> return <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_suite ( <EOL> StatsTests , <EOL> ) </s>
