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