Beispiel #1
0
    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)
Beispiel #3
0
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)