Пример #1
0
 def test_SearchNoDefaultInSwitch_none(self):
     target = SourceCode(self.none_ast)
     cases = target.SearchNoDefaultInSwitch()
     self.assertEqual(cases, [])
Пример #2
0
 def test_SearchNoDefaultInSwitch_valid(self):
     target = SourceCode(self.valid_ast)
     cases = target.SearchNoDefaultInSwitch()
     self.assertEqual(len(cases), 1)