Esempio n. 1
0
def test_cannot_pop_bottom():
    assert len(context._stack) == 1  # pylint: disable=protected-access
    with pytest.raises(RuntimeError):
        context.pop()
Esempio n. 2
0
 def cleanup():  # pylint: disable=unused-variable
     while len(context._stack) > 1:  # pylint: disable=protected-access
         context.pop()
Esempio n. 3
0
 def cleanup():
     while len(context._stack) > 1:
         context.pop()
Esempio n. 4
0
def test_cannot_pop_bottom():
    assert len(context._stack) == 1
    with pytest.raises(RuntimeError):
        context.pop()
Esempio n. 5
0
 def cleanup():
     while len(context._stack) > 1:
         context.pop()
Esempio n. 6
0
def test_cannot_pop_bottom():
    assert len(context._stack) == 1
    with pytest.raises(RuntimeError):
        context.pop()