Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

leap: Change tests assertIs(..., True) for assertTrue(...) #419

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions exercises/leap/leap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

class YearTest(unittest.TestCase):
def test_leap_year(self):
self.assertIs(is_leap_year(1996), True)
self.assertTrue(is_leap_year(1996))

def test_non_leap_year(self):
self.assertIs(is_leap_year(1997), False)
self.assertFalse(is_leap_year(1997))

def test_non_leap_even_year(self):
self.assertIs(is_leap_year(1998), False)
self.assertFalse(is_leap_year(1998))

def test_century(self):
self.assertIs(is_leap_year(1900), False)
self.assertFalse(is_leap_year(1900))

def test_exceptional_century(self):
self.assertIs(is_leap_year(2400), True)
self.assertTrue(is_leap_year(2400))


if __name__ == '__main__':
Expand Down