Back to index

python3.2  3.2.2
Functions | Variables
test.test_datetime Namespace Reference

Functions

def setUp
def tearDown
def test_main

Variables

string TESTS = 'test.datetimetester'
tuple save_sys_modules = sys.modules.copy()
tuple pure_tests
tuple fast_tests
list test_modules = [pure_tests, fast_tests]
list test_suffixes = ["_Pure", "_Fast"]
 _save_sys_modules

Function Documentation

def test.test_datetime.setUp (   self,
  module = module,
  setup = cls.setUp 
)

Definition at line 25 of file test_datetime.py.

00025 
00026             def setUp(self, module=module, setup=cls.setUp):
00027                 self._save_sys_modules = sys.modules.copy()
00028                 sys.modules[TESTS] = module
00029                 sys.modules['datetime'] = module.datetime_module
00030                 sys.modules['_strptime'] = module._strptime
                setup(self)

Here is the caller graph for this function:

def test.test_datetime.tearDown (   self,
  teardown = cls.tearDown 
)

Definition at line 31 of file test_datetime.py.

00031 
00032             def tearDown(self, teardown=cls.tearDown):
00033                 teardown(self)
00034                 sys.modules.clear()
                sys.modules.update(self._save_sys_modules)

Here is the caller graph for this function:

Definition at line 38 of file test_datetime.py.

00038 
00039 def test_main():
00040     run_unittest(__name__)

Here is the call graph for this function:


Variable Documentation

Definition at line 26 of file test_datetime.py.

Initial value:
00001 import_fresh_module(TESTS, fresh=['datetime',
00002                                                    '_datetime', '_strptime'])

Definition at line 11 of file test_datetime.py.

Initial value:
00001 import_fresh_module(TESTS, fresh=['datetime', '_strptime'],
00002                                      blocked=['_datetime'])

Definition at line 9 of file test_datetime.py.

tuple test.test_datetime.save_sys_modules = sys.modules.copy()

Definition at line 7 of file test_datetime.py.

Definition at line 16 of file test_datetime.py.

list test.test_datetime.test_suffixes = ["_Pure", "_Fast"]

Definition at line 17 of file test_datetime.py.

string test.test_datetime.TESTS = 'test.datetimetester'

Definition at line 4 of file test_datetime.py.