forked from uncloud/uncloud
Late commits
This commit is contained in:
parent
49f52fd41d
commit
a463bcf7bd
9 changed files with 161 additions and 14 deletions
|
|
@ -5,6 +5,7 @@ from django.utils import timezone
|
|||
|
||||
from .models import *
|
||||
from uncloud_service.models import GenericServiceProduct
|
||||
from uncloud.models import UncloudProvider
|
||||
|
||||
import json
|
||||
|
||||
|
|
@ -463,3 +464,26 @@ class BillingAddressTestCase(TestCase):
|
|||
self.assertRaises(uncloud_pay.models.BillingAddress.DoesNotExist,
|
||||
BillingAddress.get_address_for,
|
||||
self.user)
|
||||
|
||||
class VATRatesTestCase(TestCase):
|
||||
def setUp(self):
|
||||
self.user = get_user_model().objects.create(
|
||||
username='random_user',
|
||||
email='jane.random@domain.tld')
|
||||
|
||||
self.user_addr = BillingAddress.objects.create(
|
||||
owner=self.user,
|
||||
organization = 'Test org',
|
||||
street="unknown",
|
||||
city="unknown",
|
||||
postal_code="unknown",
|
||||
active=True)
|
||||
|
||||
UncloudProvider.populate_db_defaults()
|
||||
|
||||
|
||||
|
||||
def test_get_rate_for_user(self):
|
||||
"""
|
||||
Raise an error, when there is no address
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue