Another test
This commit is contained in:
parent
846593e20b
commit
87afe070a3
1 changed files with 8 additions and 0 deletions
|
|
@ -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"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue