Beispiel #1
0
def test_anonmem_consume_one():
    src = "x_test_value_x"
    lg = AnonMemLogBroker()
    lg.put(src)
    consumer = lg.get_consumer()
    dst = consumer.next()
    assert src == dst
Beispiel #2
0
def test_anonmem_consume_one():
    src = "x_test_value_x"
    lg = AnonMemLogBroker()
    lg.put(src)
    consumer = lg.get_consumer()
    dst = consumer.next()
    assert src == dst
Beispiel #3
0
def test_anonmem_put():
    lg = AnonMemLogBroker()
    assert lg.put("x") == 0
    assert lg.put("x") == 1
    assert lg.put("x") == 2
Beispiel #4
0
def test_anonmem_put():
    lg = AnonMemLogBroker()
    assert lg.put("x") == 0
    assert lg.put("x") == 1
    assert lg.put("x") == 2