def test_itervalues_tuple(): gen_tuple = default_generator(list_tuple) sts = SimulatedTimeSeries(gen_tuple) i = 0 for x in sts.itervalues(): assert x == list_value[i] i += 1
def test_itervalues_number(): gen = default_generator(list_value) sts = SimulatedTimeSeries(gen) i = 0 for x in sts.itervalues(): assert x == list_value[i] i += 1
def test_iter_val(): ts = SimulatedTimeSeries(make_data(0, 3)) assert list(ts.itervalues()) == [0, 1, 2, 3]