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