예제 #1
0
 def test_is_valid_vpnv4_prefix_invalid_rd(self):
     eq_(False, validation.is_valid_vpnv4_prefix('foo:bar:10.0.0.1/24'))
예제 #2
0
 def test_is_valid_vpnv4_prefix_not_str(self):
     eq_(False, validation.is_valid_vpnv4_prefix(1234))
예제 #3
0
 def test_is_valid_vpnv4_prefix_short_rd(self):
     eq_(False, validation.is_valid_vpnv4_prefix('100:10.0.0.1/24'))
예제 #4
0
 def test_is_valid_vpnv4_prefix(self):
     ok_(validation.is_valid_vpnv4_prefix('100:200:10.0.0.1/24'))
예제 #5
0
 def test_is_valid_vpnv4_prefix_invalid_rd(self):
     eq_(False, validation.is_valid_vpnv4_prefix("foo:bar:10.0.0.1/24"))
예제 #6
0
 def test_is_valid_vpnv4_prefix_short_rd(self):
     eq_(False, validation.is_valid_vpnv4_prefix("100:10.0.0.1/24"))
예제 #7
0
 def test_is_valid_vpnv4_prefix_not_str(self):
     eq_(False, validation.is_valid_vpnv4_prefix(1234))
예제 #8
0
 def test_is_valid_vpnv4_prefix(self):
     ok_(validation.is_valid_vpnv4_prefix("100:200:10.0.0.1/24"))