def test_SearchNoBreakInCase_none(self): target = SourceCode(self.none_ast) cases = target.SearchNoBreakInCase() self.assertEqual(cases, [])
def test_SearchNoBreakInCase_valid(self): target = SourceCode(self.valid_ast) cases = target.SearchNoBreakInCase() self.assertEqual(len(cases), 1)