예제 #1
0
    def test_label_from_bin_false(self):
        mpls_label = 0xfffff
        is_bos = False
        buf = b'\xff\xff\xf0'
        mpls_label_out, is_bos_out = mpls.label_from_bin(buf)

        eq_(mpls_label, mpls_label_out)
        eq_(is_bos, is_bos_out)
예제 #2
0
    def test_label_from_bin_false(self):
        mpls_label = 0xfffff
        is_bos = False
        buf = b'\xff\xff\xf0'
        mpls_label_out, is_bos_out = mpls.label_from_bin(buf)

        eq_(mpls_label, mpls_label_out)
        eq_(is_bos, is_bos_out)
예제 #3
0
    def test_label_from_bin_true(self):
        mpls_label = 0xfffff
        is_bos = True
        buf = b'\xff\xff\xf1'
        mpls_label_out, is_bos_out = mpls.label_from_bin(buf)

        eq_(mpls_label, mpls_label_out)
        eq_(is_bos, is_bos_out)
예제 #4
0
    def test_label_from_bin_true(self):
        mpls_label = 0xfffff
        is_bos = True
        buf = b'\xff\xff\xf1'
        mpls_label_out, is_bos_out = mpls.label_from_bin(buf)

        eq_(mpls_label, mpls_label_out)
        eq_(is_bos, is_bos_out)