Beispiel #1
0
def test_array_reset():
    array_ds = Stream([1, 2, 3]).rename("a")
    assert array_ds.forward() == 1
    assert array_ds.forward() == 2
    assert array_ds.forward() == 3

    array_ds.reset()
    assert array_ds.forward() == 1
    assert array_ds.forward() == 2
    assert array_ds.forward() == 3
Beispiel #2
0
def test_array_reset():
    array_ds = Stream('a', [1, 2, 3])
    assert array_ds.forward() == 1
    assert array_ds.forward() == 2
    assert array_ds.forward() == 3

    array_ds.reset()
    assert array_ds.forward() == 1
    assert array_ds.forward() == 2
    assert array_ds.forward() == 3
Beispiel #3
0
def test_array_reset():
    array_ds = Stream('a', [1, 2, 3])
    assert array_ds.next() == {'a': 1}
    assert array_ds.next() == {'a': 2}
    assert array_ds.next() == {'a': 3}

    array_ds.reset()
    assert array_ds.next() == {'a': 1}
    assert array_ds.next() == {'a': 2}
    assert array_ds.next() == {'a': 3}