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