def METHOD_NAME(self):
    transaction = TransactionFactory.create()
    with patch('silver.utils.payments.datetime') as mocked_datetime:
        mocked_datetime.utcnow.return_value = datetime.utcnow() - timedelta(days=365)
        url = get_payment_url(transaction, None)
    response = self.client.get(url)
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(force_str(response.content),
                     render_to_string('transactions/expired_payment.html', {
                         'document': transaction.document,
                     }))