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)
def setUpClass(cls): cls.op = operators.StatementDeletion()
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)