def test_close_multiples_stores(self): """ Test that closing a session with multiple stores work. """ store1 = Store() session = Session(store1) store2 = Store() session["store2"] = store2 # Should not fail. session.close()
def test_close_multiples_stores(): """ Test that closing a session with multiple stores work. """ try: store1 = Store() session = Session(store1) store2 = Store() session["store2"] = store2 # Should not fail. session.close() except Exception as e: pytest.fail(error_message(e), pytrace=True)
def test_close_multiples_stores(): """ Test that closing a session with multiple stores work. """ try: store1 = Store() session = Session(store1) store2 = Store() session["store2"] = store2 # Should not fail. session.close() except Exception, e: pytest.fail(e.message, pytrace=True)