Example #1
0
 def test_1952_leap_year(self):
     self.assertTrue(is_leap(1952))
Example #2
0
 def test_1990_not_leap_year(self):
     self.assertFalse(is_leap(1990))
Example #3
0
 def test_2000_leap_year(self):
     self.assertTrue(is_leap(2000))
Example #4
0
def test_is_leap_09():
    total = is_leap(24)
    assert total == True
Example #5
0
def test_is_leap_02():
    total = is_leap(2020)
    assert total == True
Example #6
0
def test_is_leap_07():
    total = is_leap(2200)
    assert total == False
Example #7
0
def test_is_leap_08():
    total = is_leap(2300)
    assert total == False
Example #8
0
def test_is_leap_01():
    total = is_leap(1980)
    assert total == True
Example #9
0
def test_is_leap_06():
    total = is_leap(2100)
    assert total == False
Example #10
0
def test_is_leap_05():
    total = is_leap(2400)
    assert total == True
Example #11
0
def test_is_leap_04():
    total = is_leap(2000)
    assert total == True
Example #12
0
def test_is_leap_03():
    total = is_leap(1990)
    assert total == False