Exemple #1
0
 def test_not_covered_return_node(self):
     self.assert_mutation(
         'def foo():' + EOL + INDENT + 'return' + EOL + INDENT + 'return' +
         EOL + 'foo()', [
             'def foo():' + EOL + INDENT + 'pass' + EOL + INDENT +
             'return' + EOL + 'foo()', 'def foo():' + EOL + INDENT +
             'return' + EOL + INDENT + 'return' + EOL + 'pass'
         ],
         operator=operators.StatementDeletion(),
         with_coverage=True)
Exemple #2
0
 def setUpClass(cls):
     cls.op = operators.StatementDeletion()
Exemple #3
0
 def test_not_covered_assign_node(self):
     self.assert_mutation(
         'x = 1' + EOL + 'if False:' + EOL + INDENT + 'y = 2',
         [PASS + EOL + 'if False:' + EOL + INDENT + 'y = 2'],
         operator=operators.StatementDeletion(),
         with_coverage=True)