Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_time._Test2dYear Class Reference
Inheritance diagram for test.test_time._Test2dYear:
Inheritance graph
[legend]
Collaboration diagram for test.test_time._Test2dYear:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_year
def test_invalid
def setUp
def tearDown
def yearstr

Public Attributes

 saved_accept2dyear

Static Public Attributes

int accept2dyear = 1

Detailed Description

Definition at line 309 of file test_time.py.


Member Function Documentation

def test.test_time._BaseYearTest.setUp (   self) [inherited]

Definition at line 276 of file test_time.py.

00276 
00277     def setUp(self):
00278         self.saved_accept2dyear = time.accept2dyear
00279         time.accept2dyear = self.accept2dyear

Here is the caller graph for this function:

def test.test_time._BaseYearTest.tearDown (   self) [inherited]

Definition at line 280 of file test_time.py.

00280 
00281     def tearDown(self):
00282         time.accept2dyear = self.saved_accept2dyear

Here is the caller graph for this function:

Definition at line 319 of file test_time.py.

00319 
00320     def test_invalid(self):
00321         self.assertRaises(ValueError, self.yearstr, -1)
00322         self.assertRaises(ValueError, self.yearstr, 100)
00323         self.assertRaises(ValueError, self.yearstr, 999)

Here is the call graph for this function:

Definition at line 312 of file test_time.py.

00312 
00313     def test_year(self):
00314         with support.check_warnings():
00315             self.assertEqual(self.yearstr(0), '2000')
00316             self.assertEqual(self.yearstr(69), '1969')
00317             self.assertEqual(self.yearstr(68), '2068')
00318             self.assertEqual(self.yearstr(99), '1999')

Here is the call graph for this function:

def test.test_time._BaseYearTest.yearstr (   self,
  y 
) [inherited]

Definition at line 283 of file test_time.py.

00283 
00284     def yearstr(self, y):
00285         raise NotImplementedError()

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from test.test_time._BaseYearTest.

Reimplemented in test.test_time.Test2dyearBool.

Definition at line 310 of file test_time.py.

Definition at line 277 of file test_time.py.


The documentation for this class was generated from the following file: