Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)