Parcourir la source

Fix more VPN tests

Baptiste Jonglez il y a 10 ans
Parent
commit
b56ea0d8ff
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      coin/vpn/tests.py

+ 4 - 4
coin/vpn/tests.py

@@ -75,16 +75,16 @@ class VPNTestCase(TestCase):
             self.assertIn(vpn.ipv6_endpoint, subnet.inet)
 
     def test_change_v4subnet_is_vpn_endpoint_correct(self):
-        abo = OfferSubscription.objects.all()[0]
-        subnet = abo.ip_subnet.get(ip_pool=self.v4_pool)
+        vpn = VPNConfiguration.objects.all()[0]
+        subnet = vpn.ip_subnet.get(ip_pool=self.v4_pool)
         subnet.inet = "192.168.42.42/31"
         subnet.full_clean()
         subnet.save()
         self.test_has_correct_ipv4_endpoint()
 
     def test_change_v6subnet_is_vpn_endpoint_correct(self):
-        abo = OfferSubscription.objects.all()[0]
-        subnet = abo.ip_subnet.get(ip_pool=self.v6_pool)
+        vpn = VPNConfiguration.objects.all()[0]
+        subnet = vpn.ip_subnet.get(ip_pool=self.v6_pool)
         subnet.inet = "2001:db8:4242:4200::/56"
         subnet.full_clean()
         subnet.save()