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