예제 #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)
예제 #2
0
 def setUpClass(cls):
     cls.op = operators.StatementDeletion()
예제 #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)