From 87afe070a3bb7cc05062b5d5f02a2bc505962199 Mon Sep 17 00:00:00 2001 From: RussellBallestrini Date: Tue, 8 Jan 2013 00:50:57 -0500 Subject: [PATCH] Another test --- test_ago.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test_ago.py b/test_ago.py index 50e410e..4c993ae 100644 --- a/test_ago.py +++ b/test_ago.py @@ -21,6 +21,14 @@ def test_delta2human_is_string(): def test_delta2dict_is_dict(): assert 'dict' in str(type(delta2dict( PAST_DELTA ))) +def test_valid_dict(): + past_dict = delta2dict( PAST_DELTA ) + assert past_dict['year'] == 1 + assert past_dict['day'] == 127 + assert past_dict['hour'] == 16 + assert past_dict['minute'] == 18 + + def test_output(): """Test and example usage"""