summaryrefslogtreecommitdiff
path: root/src/isodate/tests/test_duration.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/isodate/tests/test_duration.py')
-rw-r--r--src/isodate/tests/test_duration.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/isodate/tests/test_duration.py b/src/isodate/tests/test_duration.py
index 0b80a54..5bb8acb 100644
--- a/src/isodate/tests/test_duration.py
+++ b/src/isodate/tests/test_duration.py
@@ -314,6 +314,13 @@ class DurationTest(unittest.TestCase):
self.assertEqual('isodate.duration.Duration(10, 10, 0,'
' years=10, months=10)', repr(dur))
+ dur = Duration(months=0)
+ self.assertEqual('0:00:00', str(dur))
+
+ dur = Duration(months=1)
+ self.assertEqual('1 month, 0:00:00', str(dur))
+
+
def test_hash(self):
'''
Test __hash__ for Duration objects.