|
|
@ -38,7 +38,7 @@ class BitcoinBackendTest(TestCase):
|
|
|
|
self.user = User.objects.create_user('test', 'test_user@example.com', None)
|
|
|
|
self.user = User.objects.create_user('test', 'test_user@example.com', None)
|
|
|
|
|
|
|
|
|
|
|
|
self.p = Payment.objects.create(
|
|
|
|
self.p = Payment.objects.create(
|
|
|
|
user=self.user, time=timedelta(days=30), backend='bitcoin',
|
|
|
|
user=self.user, time=timedelta(days=30), backend_id='bitcoin',
|
|
|
|
amount=300)
|
|
|
|
amount=300)
|
|
|
|
|
|
|
|
|
|
|
|
def test_new(self):
|
|
|
|
def test_new(self):
|
|
|
@ -77,7 +77,7 @@ class BitcoinBackendConfirmTest(TestCase):
|
|
|
|
self.user = User.objects.create_user('test', 'test_user@example.com', None)
|
|
|
|
self.user = User.objects.create_user('test', 'test_user@example.com', None)
|
|
|
|
|
|
|
|
|
|
|
|
self.p = Payment.objects.create(
|
|
|
|
self.p = Payment.objects.create(
|
|
|
|
user=self.user, time=timedelta(days=30), backend='bitcoin',
|
|
|
|
user=self.user, time=timedelta(days=30), backend_id='bitcoin',
|
|
|
|
amount=300)
|
|
|
|
amount=300)
|
|
|
|
|
|
|
|
|
|
|
|
# call new_payment
|
|
|
|
# call new_payment
|
|
|
|