-
-
Save dob/4219a1d1dd2e76539579 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
def test_duration(self): | |
self.assert_(self.duration.years == 12) | |
self.assert_(self.duration.months == 1) | |
def test_negative_duration(self): | |
duration = EYearMonthDuration(3, 2, NEGATIVE) | |
self.assert_(duration.years == -3) | |
self.assert_(duration.months == -2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment