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