Created
August 20, 2017 22:17
-
-
Save Weyzu/8d64ab32d745d90d5a25d4c3a5e92095 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unittest import TestCase | |
from pres.utils import is_leap_year | |
class TestIsLeapYear(TestCase): | |
def test_returns_true_for_leap_years(self): | |
self.assertTrue(is_leap_year(2020)) | |
def returns_false_for_non_leap_years(self): | |
self.assertFalse(is_leap_year(2021)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment