Another test

This commit is contained in:
RussellBallestrini 2013-01-08 00:50:57 -05:00
parent 846593e20b
commit 87afe070a3

View file

@ -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"""