Back to index

python3.2  3.2.2
Public Member Functions
test.test_calendar.LeapdaysTestCase Class Reference

List of all members.

Public Member Functions

def test_no_range
def test_no_leapdays
def test_no_leapdays_upper_boundary
def test_one_leapday_lower_boundary
def test_several_leapyears_in_range

Detailed Description

Definition at line 434 of file test_calendar.py.


Member Function Documentation

Definition at line 439 of file test_calendar.py.

00439 
00440     def test_no_leapdays(self):
00441         # test when no leap years in range
00442         self.assertEqual(calendar.leapdays(2010,2011), 0)

Here is the call graph for this function:

Definition at line 443 of file test_calendar.py.

00443 
00444     def test_no_leapdays_upper_boundary(self):
00445         # test no leap years in range, when upper boundary is a leap year
00446         self.assertEqual(calendar.leapdays(2010,2012), 0)

Here is the call graph for this function:

Definition at line 435 of file test_calendar.py.

00435 
00436     def test_no_range(self):
00437         # test when no range i.e. two identical years as args
00438         self.assertEqual(calendar.leapdays(2010,2010), 0)

Here is the call graph for this function:

Definition at line 447 of file test_calendar.py.

00447 
00448     def test_one_leapday_lower_boundary(self):
00449         # test when one leap year in range, lower boundary is leap year
00450         self.assertEqual(calendar.leapdays(2012,2013), 1)

Here is the call graph for this function:

Definition at line 451 of file test_calendar.py.

00451 
00452     def test_several_leapyears_in_range(self):
00453         self.assertEqual(calendar.leapdays(1997,2020), 5)
00454 

Here is the call graph for this function:


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