Skip to content

Instantly share code, notes, and snippets.

@dob dob/test_date.py Secret
Created Nov 21, 2008

Embed
What would you like to do?
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
You can’t perform that action at this time.