Skip to content

Instantly share code, notes, and snippets.

@Weyzu
Created August 20, 2017 22:17
Show Gist options
  • Save Weyzu/8d64ab32d745d90d5a25d4c3a5e92095 to your computer and use it in GitHub Desktop.
Save Weyzu/8d64ab32d745d90d5a25d4c3a5e92095 to your computer and use it in GitHub Desktop.
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