Back to index

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

List of all members.

Classes

class  X

Public Member Functions

def test_2dyear
def test_invalid
def yearstr
def test_large_year
def setUp
def tearDown
def yearstr

Public Attributes

 saved_accept2dyear

Static Public Attributes

 accept2dyear = None

Detailed Description

Definition at line 382 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 387 of file test_time.py.

00387 
00388     def test_2dyear(self):
        pass

Definition at line 389 of file test_time.py.

00389 
00390     def test_invalid(self):
00391         self.assertRaises(RuntimeError, self.yearstr, 200)
00392 

Here is the call graph for this function:

Definition at line 290 of file test_time.py.

00290 
00291     def test_large_year(self):
00292         # Check that it doesn't crash for year > 9999
00293         self.assertEqual(self.yearstr(12345), '12345')
00294         self.assertEqual(self.yearstr(123456789), '123456789')

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:

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

Definition at line 287 of file test_time.py.

00287 
00288     def yearstr(self, y):
00289         return time.asctime((y,) + (0,) * 8).split()[-1]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

test.test_time._BaseYearTest.accept2dyear = None [static, inherited]

Definition at line 277 of file test_time.py.


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