Esempio n. 1
0
 def test_not_covered_while_node(self):
     self.assert_mutation('while False:' + EOL + INDENT + 'while False:' +
                          EOL + 2 * INDENT + PASS, [
                              'while (not False):' + EOL + INDENT +
                              'while False:' + EOL + 2 * INDENT + PASS
                          ],
                          operator=operators.ConditionalOperatorInsertion(),
                          with_coverage=True)
Esempio n. 2
0
 def setUpClass(cls):
     cls.op = operators.ConditionalOperatorInsertion()