phase in configuration - move address to base
This commit is contained in:
parent
fe4e200dc0
commit
bbc7625550
22 changed files with 668 additions and 300 deletions
|
|
@ -3,13 +3,20 @@ from rest_framework.test import APIRequestFactory, force_authenticate
|
|||
|
||||
from rest_framework.reverse import reverse
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.core.exceptions import ValidationError, FieldError
|
||||
|
||||
from .views import *
|
||||
from .models import *
|
||||
|
||||
from uncloud_pay.models import BillingAddress, Order
|
||||
|
||||
|
||||
class UncloudNetworkTests(TestCase):
|
||||
def test_invalid_IPv4_network(self):
|
||||
with self.assertRaises(FieldError):
|
||||
UncloudNetwork.objects.create(network_address="192.168.1.0",
|
||||
network_mask=33)
|
||||
|
||||
class VPNTests(TestCase):
|
||||
def setUp(self):
|
||||
self.user = get_user_model().objects.create_user('django-test-user', 'noreply@ungleich.ch')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue