pretty_date(None) now returns None

This commit is contained in:
2016-11-08 12:56:19 +01:00
parent fb6e326a14
commit 65b554986c
3 changed files with 17 additions and 7 deletions

View File

@@ -42,6 +42,11 @@ class IsValidIdTest(unittest.TestCase):
class PrettyDateTest(unittest.TestCase):
def test_none(self):
from pillar.web.utils import pretty_date
self.assertIsNone(pretty_date(None))
def test_past(self):
from pillar.web.utils import pretty_date