def test_send_receipt_not_sent(self, get_current_mock): charge = Charge(receipt_sent=True) charge.send_receipt() # Assert the condition caused exit self.assertFalse(get_current_mock.called)