Esempio n. 1
0
def test_get_env_runner_raises():
    s = Bytes()
    with pytest.raises(NotImplementedError):
        s.get_env_runner("")
Esempio n. 2
0
def test_get_runner_raises_if_flow_not_present():
    s = Bytes()
    with pytest.raises(ValueError):
        s.get_runner("test")
Esempio n. 3
0
def test_create_bytes_storage():
    storage = Bytes()
    assert storage
Esempio n. 4
0
def test_get_flow_returns_flow():
    s = Bytes()
    f = Flow("test")
    s.add_flow(f)
    runner = s.get_flow("test")
    assert runner == f