コード例 #1
0
def test_cannot_pop_bottom():
    assert len(context._stack) == 1  # pylint: disable=protected-access
    with pytest.raises(RuntimeError):
        context.pop()
コード例 #2
0
 def cleanup():  # pylint: disable=unused-variable
     while len(context._stack) > 1:  # pylint: disable=protected-access
         context.pop()
コード例 #3
0
ファイル: test_context.py プロジェクト: Guy-Lev/slash
 def cleanup():
     while len(context._stack) > 1:
         context.pop()
コード例 #4
0
ファイル: test_context.py プロジェクト: Guy-Lev/slash
def test_cannot_pop_bottom():
    assert len(context._stack) == 1
    with pytest.raises(RuntimeError):
        context.pop()
コード例 #5
0
ファイル: test_context.py プロジェクト: tobyk100/slash
 def cleanup():
     while len(context._stack) > 1:
         context.pop()
コード例 #6
0
ファイル: test_context.py プロジェクト: tobyk100/slash
def test_cannot_pop_bottom():
    assert len(context._stack) == 1
    with pytest.raises(RuntimeError):
        context.pop()