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