def test_ignoresOrphanedEnd(self): sut = BeginEndMatcher() sut.process( [end_3b9d] ) ends = sut.incompleteRequests() self.assertEqual(ends,[])
def test_IsNotIncompleteIfBothStartAndEndFound(self): sut = BeginEndMatcher() sut.process([start_55a5, end_55a5]) extras = sut.incompleteRequests() self.assertEquals(extras, [])
def test_IsIncompleteIfOnlyStartLineFound(self): sut = BeginEndMatcher() sut.process( [start_55a5] ) starts = sut.incompleteRequests() self.assertEqual(starts, [reformatted_55a5])