예제 #1
0
 def test_is_valid_vpnv6_prefix_invalid_rd(self):
     eq_(False, validation.is_valid_vpnv6_prefix('foo:bar:10.0.0.1/24'))
예제 #2
0
 def test_is_valid_vpnv6_prefix_not_str(self):
     eq_(False, validation.is_valid_vpnv6_prefix(1234))
예제 #3
0
 def test_is_valid_vpnv6_prefix_short_rd(self):
     eq_(False, validation.is_valid_vpnv6_prefix('100:eeff/64'))
예제 #4
0
 def test_is_valid_vpnv6_prefix(self):
     ok_(
         validation.is_valid_vpnv6_prefix(
             '100:200:fe80::0011:aabb:ccdd:eeff/64'))
예제 #5
0
 def test_is_valid_vpnv6_prefix_invalid_rd(self):
     eq_(False, validation.is_valid_vpnv6_prefix("foo:bar:10.0.0.1/24"))
예제 #6
0
 def test_is_valid_vpnv6_prefix_short_rd(self):
     eq_(False, validation.is_valid_vpnv6_prefix("100:eeff/64"))
예제 #7
0
 def test_is_valid_vpnv6_prefix_not_str(self):
     eq_(False, validation.is_valid_vpnv6_prefix(1234))
예제 #8
0
 def test_is_valid_vpnv6_prefix(self):
     ok_(validation.is_valid_vpnv6_prefix("100:200:fe80::0011:aabb:ccdd:eeff/64"))