def test_open_close():
    f = MessageReader(SERVICE, TOPIC).open()
    assert hasattr(f, '__iter__')
    f.close()
Esempio n. 2
0
def test_close_twice():
    f = MessageReader(SERVICE).open()
    f.close()
    f.close()