Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/m/i/MiniParse-0.2.0/MiniParse/Core/tests/BadBehavior.py   MiniParse(Download)
from MiniParse import parse
from MiniParse import SequenceParser
from MiniParse.Core.Cursor import Cursor
 
 
    def testNotEndingTheBacktrackingRaisesAssertionError(self):
        cursor = Cursor("")
        with self.assertRaises(AssertionError):
            with cursor.backtracking as bt:
                cursor.success(42)  # should have been bt.success(42)