summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-04-28 11:39:37 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2013-04-28 11:39:37 +0200
commit37254abc36695692649348099fae0ed8f73fd3d1 (patch)
tree8e47732831058225e8f76cd96851865bac405d6d /test
parenta11ea50319c5dc5d01098e28122617391c97d555 (diff)
downloadyoutube-dl-37254abc36695692649348099fae0ed8f73fd3d1.tar.gz
youtube-dl-37254abc36695692649348099fae0ed8f73fd3d1.zip
Allow to use relative dates in the format (now|today)[+-][0-9](day|week|month|year)(s)? (Closes #137)
Also fix DateRange not accepting ranges of one day.
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 343409a7a..c4b71362e 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -105,7 +105,7 @@ class TestUtil(unittest.TestCase):
self.assertTrue("19690721" in _ac)
_firstmilenium = DateRange(end="10000101")
self.assertTrue("07110427" in _firstmilenium)
-
+
def test_unified_dates(self):
self.assertEqual(unified_strdate('December 21, 2010'), '20101221')
self.assertEqual(unified_strdate('8/7/2009'), '20090708')