Exemple #1
0
 def test_is_valid_mpls_label_over(self):
     eq_(False, validation.is_valid_mpls_label(0x100000 + 1))
Exemple #2
0
 def test_is_valid_mpls_label_negative(self):
     eq_(False, validation.is_valid_mpls_label(-1))
Exemple #3
0
 def test_is_valid_mpls_label_reserved(self):
     eq_(False, validation.is_valid_mpls_label(4))
Exemple #4
0
 def test_is_valid_mpls_label_not_num(self):
     eq_(False, validation.is_valid_mpls_label('foo'))
Exemple #5
0
 def test_is_valid_mpls_label(self):
     ok_(validation.is_valid_mpls_label(100))