def test_add_timestamp_all(self): orig = { 'a': (1, 0), 'b': (2, 1), 'c': (3, 0) } res = utils._add_timestamp(orig) assert res == orig
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
def test_add_timestamp_all(self): orig = {"a": (1, 0), "b": (2, 1), "c": (3, 0)} res = utils._add_timestamp(orig) assert res == orig
def test_add_timestamp_empty(self): orig = {} res = utils._add_timestamp(orig) assert res == {}
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