示例#1
0
 def test_add_timestamp_mixed(self):
     orig = { 'a': 1, 'b': (2, 1), 'c': 3 }
     exp = { 'a': (1, 0), 'b': (2, 1), 'c': (3, 0) }
     res = utils._add_timestamp(orig)
     assert res == exp
示例#2
0
 def test_add_timestamp_all(self):
     orig = { 'a': (1, 0), 'b': (2, 1), 'c': (3, 0) }
     res = utils._add_timestamp(orig)
     assert res == orig
示例#3
0
 def test_add_timestamp_empty(self):
     orig = {}
     res = utils._add_timestamp(orig)
     assert res == {}